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.
21 lines
601 B
21 lines
601 B
5 years ago
|
## comcheck
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
5 years ago
|
Write a program `comcheck` that displays on the standard output `Alert!!!` followed by newline (`'\n'`) if at least one of the arguments passed in parameter matches the `string`:
|
||
6 years ago
|
|
||
5 years ago
|
- `01`, `galaxy` or `galaxy 01`.
|
||
6 years ago
|
|
||
5 years ago
|
- If none of the parameters match, the program displays a nothing.
|
||
5 years ago
|
|
||
|
### Usage
|
||
6 years ago
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/comcheck$ go build
|
||
|
student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy"
|
||
5 years ago
|
Alert!!!
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me"
|
||
5 years ago
|
Alert!!!
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/comcheck$
|
||
6 years ago
|
```
|