Browse Source

Merge pull request #179 from 01-edu/cat-readme

changed instructions to follow the standard
pull/190/head
Christopher Fremond 6 years ago committed by GitHub
parent
commit
72911cbd5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      subjects/cat.en.md
  2. 10
      subjects/cat.fr.md

10
subjects/cat.en.md

@ -20,16 +20,16 @@ Write a program that has the same behaviour as the system's `cat` command-line.
- In case of error the program should print the error.
### Usage:
- The program must be submitted inside a folder named `cat`.
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
student@ubuntu:~/student/cat$ go build
student@ubuntu:~/student/cat$ ./cat
Hello
Hello
student@ubuntu:~/student/test$ ./test quest8.txt
student@ubuntu:~/student/cat$ ./cat quest8.txt
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
student@ubuntu:~/student/test$ ./test quest8.txt quest8T.txt
student@ubuntu:~/student/cat$ ./cat quest8.txt quest8T.txt
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."

10
subjects/cat.fr.md

@ -20,16 +20,18 @@
- En cas d'erreur le programme doit imprimer l'erreur.
- L eprogramme doit être rendu dans un dossier nommé `cat`.
### Utilisation:
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
student@ubuntu:~/student/cat$ go build
student@ubuntu:~/student/cat$ ./cat
Hello
Hello
student@ubuntu:~/student/test$ ./test quest8.txt
student@ubuntu:~/student/cat$ ./cat quest8.txt
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
student@ubuntu:~/student/test$ ./test quest8.txt quest8T.txt
student@ubuntu:~/student/cat$ ./cat quest8.txt quest8T.txt
"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing
"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."

Loading…
Cancel
Save