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

12
subjects/fixthemain.fr.md

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

2
subjects/pilot.en.md

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

4
subjects/pilot.fr.md

@ -2,9 +2,9 @@
### 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
package main

Loading…
Cancel
Save