Added: 3 years ago
From: dorns606
Views: 6,662
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (21)

Sign In or Sign Up now to post a comment!
  • use java eclipse

  • Why are you using system("pause") and not std::cin.getline() ?

  • holy shit! Watch out activision!

  • Why have you named this video "C++ Game" if it is NOT a game?!

  • you should just have do command prompt

  • Dude system("pause") uses heavy processing resources for obvious reasons.

    Do

    cin.ignore();

    cin.get();

  • @MrVirtualCoder Ah great idea thanks m8

  • if this develops into a more advanced kind of game, my congratz! Of course, you don't get them yet because it's text based :P

  • No need to use system("PAUSE") all the time, I normally use that when I end a console program.

    system("PAUSE");

    return 0;

    endl; is better to use, so something like cout << "My text here" << endl; or if you want input just use cin, the "Press any key to continue" is retarded.

  • 1 advice... It looks lame when it's like:

    Hi it's me click to continue...

    just type in endl;

    Hi it's me

    Click to continue...

  • Good for a beginner program!!

    Check out my game too!

    Greets

    Daniel

  • Y did you video tape it, you could have screencasted it :P

  • Keep up the err... "GAME" programming XD

  • wouldn't call this a game :/

  • instead of system("PAUSE") use sleep(amount of milliseconds), it's timed and yout don't have to press keys over and over

  • is it really millisecond based?

  • Ya. There is a good reason behind it though. Seconds are too long in the computing world.

  • Another good thing to practice:

    Try make a simple guessing game, or a calculator.

    Making a calculator makes you understand operators, if & else and variables better. remember:Always have a goal for making something, just following a tutorial with no goal wont get you far.

    Grtz.

  • Great! =P

    But shouldn´t you type using namespace std; just after loading libraries? Because all elements of the standard c++ library are declared in namespace std?

  • ya i did start programming yesterday lol! in C++ anyway i worked with flash just a little before this.

  • Great for a begginer...did you start learning programming yesterday aswell?

  • go download a screen recorder :P

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