Browse Source

fixes and translations

content-update
Christopher Fremond 5 years ago committed by Christopher Fremond
parent
commit
92754ebf3d
  1. 12
      subjects/fixthemain.en.md
  2. 12
      subjects/fixthemain.fr.md
  3. 2
      subjects/pilot.en.md
  4. 4
      subjects/pilot.fr.md

12
subjects/fixthemain.en.md

@ -2,9 +2,9 @@
### Instructions ### Instructions
Write and fix the following program. Fix the following program.
### Expected functions ### Program to fix
```go ```go
package piscine package piscine
@ -17,18 +17,18 @@ func PrintStr(str string) {
} }
func CloseDoor(ptrDoor *Door) bool { func CloseDoor(ptrDoor *Door) bool {
PrintStr("Door closing...") PrintStr("Door Closing...")
state = CLOSE state = CLOSE
return true return true
} }
func IsDoorOpen(Door Door) { func IsDoorOpen(Door Door) {
PrintStr("Door is open ?") PrintStr("is the Door opened ?")
return Door.state = OPEN return Door.state = OPEN
} }
func IsDoorClose(ptrDoor *Door) bool { func IsDoorClose(ptrDoor *Door) bool {
PrintStr("Door is close ?") PrintStr("is the Door closed ?")
} }
func main() { func main() {
@ -45,4 +45,4 @@ func main() {
CloseDoor(door) CloseDoor(door)
} }
} }
``` ```

12
subjects/fixthemain.fr.md

@ -2,9 +2,9 @@
### Instructions ### Instructions
Write and fix the following program. Réparer le programme ci-dessous.
### Expected functions ### Programme à réparer
```go ```go
package piscine package piscine
@ -17,18 +17,18 @@ func PrintStr(str string) {
} }
func CloseDoor(ptrDoor *Door) bool { func CloseDoor(ptrDoor *Door) bool {
PrintStr("Door closing...") PrintStr("Door Closing...")
state = CLOSE state = CLOSE
return true return true
} }
func IsDoorOpen(Door Door) { func IsDoorOpen(Door Door) {
PrintStr("Door is open ?") PrintStr("is the Door opened ?")
return Door.state = OPEN return Door.state = OPEN
} }
func IsDoorClose(ptrDoor *Door) bool { func IsDoorClose(ptrDoor *Door) bool {
PrintStr("Door is close ?") PrintStr("is the Door closed ?")
} }
func main() { func main() {
@ -45,4 +45,4 @@ func main() {
CloseDoor(door) CloseDoor(door)
} }
} }
``` ```

2
subjects/pilot.en.md

@ -2,7 +2,7 @@
### Instructions ### Instructions
Write a go file so that the following program compile Write a `go` file so that the following program compiles.
### Usage ### Usage

4
subjects/pilot.fr.md

@ -2,9 +2,9 @@
### Instructions ### Instructions
Write a go file so that the following program compile Écrire un fichier `go` de manière à ce que le programme ci-dessous compile.
### Usage ### Utilisation
```go ```go
package main package main

Loading…
Cancel
Save