C++ Tutorial : How to create a game
Top Comments
Video Responses
All Comments (148)
-
err this vid isn't in hd
-
which compiler are u using?
-
wt the hell is this
-
mate i just satrted out and i do better, no offence but mate use ur voice, make sure syntax errors become the past and have fun :D
-
worst video ever!!! need to speak words mate
-
i have a code but i need to know how to save and run it
-
Bad code.
1. Variables should be declared whenever they are needed
2. Using namespace std in file scope is not good, should have used this line in main()
3. A for loop could have been used instead of a while loop
4. The loop could have been terminated with break; instead of system("pause"), using this during a loop is very very very bad code IMO.
5. System("pause") should not have been used,
the following would achieve the same effect but better
cin.clear():
cin.ignore(255,'\n');
cin.get();
-
@term884 C++
-
Thumbs up if you muted this video.
-
Though you should use getchar() instead of getch(), because the latter isn't always fully supported in all compilers/OSs.
Bad code.
Drillur 7 months ago 23
there is 6 errors in the code for me
Jerjer907 7 months ago 6