C++ Tutorial (15) - Absolute n00b spoonfeed

Loading...

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

Uploaded by on Apr 10, 2008

Video tutorials about programming in the C++ programming language.

Part 15:
* operators not-equals/more-or-equals/less-or-equals
* nested if/else statements

Pardon my imperfect english.

Forum: http://cpptutorials.freeforums.org/

If you have any suggestions about how to make this video clearer, more n00b helpful, and explanatory, please send me a message.

If you have any C++ questions, please comment.

Addition at 6:37 (for next update): We see here the power of variables; sometimes (should i say, most of the time) you, the programmer, will never know what actual value the variable will hold when the program is actually running. But you definitely prepare your program to handle the variable WHATEVER value it may ever hold. (or at least, you should!) So we now begin getting comfortable speaking about "x" and about "y" and "z" whatever variable you'd like, WITHOUT knowing at all what number they are actually holding. If you wonder "did you say 'x'? but what number is x holding?" the answer is "dude, no difference. whatever x may be holding the program still works according to plan, we make sure the program will be ready for whatever number may be in there". You can understand this easier knowing about the == operator, the less-than/more-than operators, etc. etc.

  • likes, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (antiRTFM)

  • You mispelled 2 things and it still worked, why is that? you said theNUmber, and player Gueass, how did it still work? and how do i make it where it wont cancel out of console untill i get the answer right?

  • @daeGamer aha, keen observations!

    I most probably cut out the part of the clip where i get compiler errors and i fix those mistakes :) now ain't I a sneaky one

  • @antiRTFM Oh, sneaky sneaky, i like your videos and im learning this, best videos out there. keep it up

  • @daeGamer ;) thanks

    See my channel FAQ #1 and #2

  • 6:53 - why you doing like that?

    char f;

    cin >> f;

    istead of that just write:

    cin.sync();

    cin.get();

  • (reads up on std::cin::sync...)

see all

All Comments (112)

Sign In or Sign Up now to post a comment!
  • why do I get this syntax error: missing ";" before 'cout' ? checked my code agian and again and its the same as yours! Also if I start debugging it says: not equal! (from the last topic).

  • 3:50-3:55"The best way to understand these operators is to sit down and test it out for yourself..."

    Mannnn... do you think I'm standing up watching 60+ 10 min C++ do-it-yourself youtube videos standing up????

  • @cuz207 Hey there friend I believe I see your problem ,sorry for late response. You haven't told it what to do if the playerGuess == theNumber, perhaps cout << "Winner";

    There other problem is that it needs a semicolon at the end of the if statement

  • Ty so much for these videos, This way of learning is more fast and efficient.

  • '-'

  • it says that 'playersGuess' is an 'undeclared identifier'?

    help

  • Guess: I hope the next video lesson is about simple looping. :D

  • @antiRTFM lol.

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