Can you guys check out my snake game! Tell my if it works. If I’d does say, YES IT DOES. If it doesn’t say, NO | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you guys check out my snake game! Tell my if it works. If I’d does say, YES IT DOES. If it doesn’t say, NO

16th Mar 2019, 7:54 PM
Fexer
Fexer - avatar
19 Answers
+ 3
Fexer Did you changed something? You need to close your int main() class: int main(){ //your code } <-- add this at the end of int main()
16th Mar 2019, 9:15 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
Edward Den Gedanken hatte ich auch. Manchmal macht es ja durchaus Sinn zu fragen ob das eigene Programm funktioniert, aber hier war mir das zu seltsam. Da hätte ich eher die Frage "Warum funktioniert mein Programm nicht?" erwartet. Auf jeden Fall fehlt da eine Klammer. ;) Ich werde mich hier auch zurückziehen. Habe ja gesehen, dass er deine Fragen nicht beantworten konnte/wollte.
16th Mar 2019, 11:28 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Which game do you mean? You can add your code: Click on the + sign, then click "insert code", choose your code and add it.
16th Mar 2019, 8:10 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
thx
16th Mar 2019, 8:38 PM
Fexer
Fexer - avatar
+ 1
Your while loop inside int main() runs infinity.
16th Mar 2019, 8:38 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Fexer No, it is not working. Click on the code, then click on run. Then you will see it. But I can not help to debug your code. I am not familiar with c++.
16th Mar 2019, 8:48 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
hey Fexer , your code needs interactive input. In Sololearn code playground this is only possible with HTML/JS. In all other languages you must input all needed inputs at rhe beginning of the program runtime. But you want to know so badly if the code works: try it yourself! Have you tryed to hit the green "run" buttom at the lower right?
16th Mar 2019, 8:59 PM
Edward
Edward - avatar
+ 1
Denise Roßberg ich vermute der Junge hat einfach etwas im Netz kopiert und hier eingefügt. jemand der so ein Programm schreiben kann sollte die Art Schwierigkeiten nicht haben. By the way, das fehlende Zeichen soll nicht ganz am Ende, sondern 3 Zeilen vor dem Ende vorkommen. Ich bin hier mit der Bereitschaft zu helfen zu Ende.
16th Mar 2019, 10:58 PM
Edward
Edward - avatar
0
plz guys tell me plz
16th Mar 2019, 7:54 PM
Fexer
Fexer - avatar
0
ok
16th Mar 2019, 8:18 PM
Fexer
Fexer - avatar
0
Line 152: add }
16th Mar 2019, 8:34 PM
Denise Roßberg
Denise Roßberg - avatar
0
what does rhat mean
16th Mar 2019, 8:42 PM
Fexer
Fexer - avatar
0
so does it work?
16th Mar 2019, 8:42 PM
Fexer
Fexer - avatar
0
ok thx
16th Mar 2019, 8:48 PM
Fexer
Fexer - avatar
0
I DId!!!!
16th Mar 2019, 9:00 PM
Fexer
Fexer - avatar
0
Fexer so, what was the outcome?
16th Mar 2019, 9:06 PM
Edward
Edward - avatar
0
?bye
16th Mar 2019, 9:06 PM
Fexer
Fexer - avatar
0
Fexer if you are not able to answer to my questions properly I will not be able to help you.
16th Mar 2019, 9:09 PM
Edward
Edward - avatar