Browse Source

Rename PutStr to PrintStr

content-update
Xavier Petit 5 years ago committed by Christopher Fremond
parent
commit
3e8815b998
  1. 8
      subjects/fixthemain.en.md
  2. 8
      subjects/fixthemain.fr.md
  3. 4
      subjects/printstr.fr.md

8
subjects/fixthemain.en.md

@ -7,7 +7,7 @@ Write and fix the folloing functions.
### Expected functions
```go
func PutStr(str string) {
func PrintStr(str string) {
arrayRune := []rune(str)
for _, s := range arrayRune {
z01.PrintRune(s)
@ -15,18 +15,18 @@ func PutStr(str string) {
}
func CloseDoor(ptrDoor *Door) bool {
PutStr("Door closing...")
PrintStr("Door closing...")
state = CLOSE
return true
}
func IsDoorOpen(Door Door) {
PutStr("Door is open ?")
PrintStr("Door is open ?")
return Door.state = OPEN
}
func IsDoorClose(ptrDoor *Door) bool {
PutStr("Door is close ?")
PrintStr("Door is close ?")
}
```

8
subjects/fixthemain.fr.md

@ -7,7 +7,7 @@ Write and fix the folloing functions.
### Expected functions
```go
func PutStr(str string) {
func PrintStr(str string) {
arrayRune := []rune(str)
for _, s := range arrayRune {
z01.PrintRune(s)
@ -15,18 +15,18 @@ func PutStr(str string) {
}
func CloseDoor(ptrDoor *Door) bool {
PutStr("Door closing...")
PrintStr("Door closing...")
state = CLOSE
return true
}
func IsDoorOpen(Door Door) {
PutStr("Door is open ?")
PrintStr("Door is open ?")
return Door.state = OPEN
}
func IsDoorClose(ptrDoor *Door) bool {
PutStr("Door is close ?")
PrintStr("Door is close ?")
}
```

4
subjects/printstr.fr.md

@ -1,4 +1,4 @@
## putstr
## prinstr
### Instructions
@ -23,7 +23,7 @@ import piscine ".."
func main() {
str := "Hello World!"
piscine.Putstr(str)
piscine.PrintStr(str)
}
```

Loading…
Cancel
Save