I know this is a very silly and simple question but I've been trying to print out an image of a robot that should output this:
+----------+
| |
| / / |
| / / |
| |
| [-=-=-] |
+----------+
The part I'm stuck on is printing out the eyes.
originally I coded:
printf("| / / |");
printf("| / / |");
but an error showed, so I remembered that you need to double slash so:
printf("| /\ /\ |");
printf("| \/ \/ |");
but an error saying implicit declaration of function printf is showing even after that?! I don't understand the error. Can someone explain how to fix this please?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…