C++ Tutorial - 19 - The if else if else Statement

Loading...

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

Uploaded by on Dec 21, 2008

Part 20 - http://www.youtube.com/watch?v=xzRLP_PkV1c&fmt=18

To get all the source code from this tutorial, visit my site at http://thenewboston.com

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:
see all

All Comments (150)

Sign In or Sign Up now to post a comment!
  • @Badya122 u have to put the "do" before the cin>>answer;

    same thing happened to me, message me and I will explain why

  • good stuff!

  • knowing batch really helps with these tutorials

    

  • @kidharris55 Also you'd need to so answer == "why"

  • @kidharris55 Don't know if you figured it out yet or not, but instead of Int, or Char before your variable, you type String.

  • Thank you so much for the [do-while] command i needed that

  • what if you didnt want a number and u wanted a character.

    like

    if (answer == why)

    cout << "because" << endl;

    bad example but i think you get the point.

  • when you type for example 123456543 the program gets fucked and it just continious to say "too high" like a for loop and it doesnt stop:)

  • @DTHRocket If you say if( >21) blahblah, it's wrong, it should be if(ANSWER(or whatever variable) >21) blah blah

  • Gracias Bucky, From this Tutorial i able to make a game "Guess The Numbers" from C++ program. ^_^

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