Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Tutorial : How to create a game

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
47,301
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 13, 2009

Just a simple game in c++, if you enjoyed watching this video goto : youtube.com/hdvidsonly and Subscribe.

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Top Comments

  • Bad code.

  • there is 6 errors in the code for me

see all

All Comments (148)

Sign In or Sign Up now to post a comment!
  • 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.

  • @juplm4000

    Though you should use getchar() instead of getch(), because the latter isn't always fully supported in all compilers/OSs.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more