Browse Source

subject corrections

content-update
MSilva95 4 years ago committed by Xavier Petit
parent
commit
3fdb1a0d4c
  1. 2
      subjects/alphamirror.en.md
  2. 2
      subjects/atoibaseprog.en.md
  3. 2
      subjects/compareprog.en.md
  4. 2
      subjects/itoaprog.en.md
  5. 2
      subjects/options.en.md
  6. 2
      subjects/revwstr.en.md
  7. 2
      subjects/rot13.en.md
  8. 6
      subjects/union.en.md

2
subjects/alphamirror.en.md

@ -13,7 +13,7 @@ The final result will be followed by a newline (`'\n'`).
If the number of arguments is different from 1, the program displays only a newline (`'\n'`).
### Usage
### Usage:
```console
student@ubuntu:~/[[ROOT]]/alphamirror$ go build

2
subjects/atoibaseprog.en.md

@ -15,7 +15,7 @@ This means that:
Write a function that takes a `string` number and its `string` base in parameters and returns its conversion as an `int`.
If the base or the `string` number is not valid it returns `0`:
If the base or the `string` number is not valid it returns `0`
Validity rules for a base :

2
subjects/compareprog.en.md

@ -6,7 +6,7 @@ Write a program that behaves like the `Compare` function from the `Go` package `
This program prints a number after comparing two `string` lexicographically.
### Usage :
### Usage:
```console
student@ubuntu:~/compareprog$ go build

2
subjects/itoaprog.en.md

@ -13,7 +13,7 @@ This means that:
### Instructions
- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an`int` in a number represented as a `string`.
- Write a function that simulates the behaviour of the `Itoa` function in Go. `Itoa` transforms a number represented as an `int` in a number represented as a `string`.
- For this exercise the handling of the signs + or - **does have** to be taken into account.

2
subjects/options.en.md

@ -18,7 +18,7 @@ Write a program that takes an undefined number of arguments which could be consi
- A wrong `option` must print `Invalid Option` followed by a newline.
## Usage
### Usage
```console
student@ubuntu:~/[[ROOT]]/test$ go build

2
subjects/revwstr.en.md

@ -8,7 +8,7 @@ Write a program that takes a `string` as a parameter, and prints its words in re
- If the number of parameters is different from 1, the program will display newline (`'\n'`).
- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additionnal spaces at the beginning or at the end of the `string`and that words will always be separated by exactly one space).
- In the parameters that are going to be tested, there will not be any extra spaces. (meaning that there will not be additional spaces at the beginning or at the end of the `string` and that words will always be separated by exactly one space).
### Usage

2
subjects/rot13.en.md

@ -5,7 +5,7 @@
Write a program that takes a `string` and displays it, replacing each of its
letters by the letter 13 spaces ahead in alphabetical order.
- 'z' becomes 'm' and 'Z' becomes 'M'. Case remains unaffected.
- 'z' becomes 'm' and 'Z' becomes 'M'. The case of the letter stays the same.
- The output will be followed by a newline (`'\n'`).

6
subjects/union.en.md

@ -4,7 +4,7 @@
Write a program that takes two `string` and displays, without doubles, the characters that appear in either one of the `string`.
The display will be in the order characters appear in the command line, and will be followed by a newline (`'\n'`).
The display will be in the order that the characters will appear on the command line and will be followed by a newline (`'\n'`).
If the number of arguments is different from 2, then the program displays newline (`'\n'`).
@ -12,9 +12,9 @@ If the number of arguments is different from 2, then the program displays newlin
```console
student@ubuntu:~/[[ROOT]]/union$ go build
student@ubuntu:~/[[ROOT]]/union$ ./union zpadinton "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e
student@ubuntu:~/[[ROOT]]/union$ ./union "zpadinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e
zpadintoqefwjy$
student@ubuntu:~/[[ROOT]]/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e
student@ubuntu:~/[[ROOT]]/union$ ./union "ddf6vewg64f" "gtwthgdwthdwfteewhrtag6h4ffdhsd" | cat -e
df6vewg4thras$
student@ubuntu:~/[[ROOT]]/union$ ./union "rien" "cette phrase ne cache rien" | cat -e
rienct phas$

Loading…
Cancel
Save