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.
18 lines
539 B
18 lines
539 B
5 years ago
|
## printstrprog
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
- Écrire un programme qui affiche un à un les caractères d'une `string` passée en argument du programme.
|
||
|
|
||
|
### Utilisation :
|
||
|
|
||
|
```console
|
||
|
student@ubuntu:~/piscine-go/printstrprog$ go build
|
||
|
student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello World!" | cat -e
|
||
|
Hello World!$
|
||
|
student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog
|
||
|
student@ubuntu:~/piscine-go/printstrprog$
|
||
|
student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello" "World"
|
||
|
student@ubuntu:~/piscine-go/printstrprog$
|
||
|
```
|