mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
654 B
654 B
nruneprog
Instructions
Écrire un programme qui reçoit une string
en paramètre et qui retourne la énième rune
de la string
.
Utilisation :
student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 2
e
student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 4 | cat -e
l$
student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 5
o
student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello"
student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" f | cat -e
"f" is not an integer value$
student@ubuntu:~/[[ROOT]]/nruneprog$ ./nruneprog "hello" 9
Invalid position: "9" in "hello"
student@ubuntu:~/[[ROOT]]/nruneprog$