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

BeginnersCPP.com- Episode 2: Simple variables and Cin

Loading...

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

Uploaded by on Jun 9, 2011

In this video I show you how to use simple variables and cin to handle user input.

Things you should try to notice:
The difference between double / float, and int.
Start noticing the syntax in the video- semicolons end lines,
return 0; at the end of the program. Every { has a closing }, etc.

Also: Max int on a 32 bit platform is: 4,294,967,296, however for reasons of portability, you should use long if you ever have to store an int over 32,767.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (SkyeShatter)

  • hi i tried to modify it but it wouldnt work so i copied it exactly like yours and it still comes up blank, it also doesnt show an error but it does nothing at the same time here is the link if you could see what is wrong with it

  • @ZohebKarmali That sounds a lot like an internal terminal crash, it's an error that will hopefully be fixed in the next revision on netbeans, for now you can work around it by doing what it outlined in this video watch?v=uFKgXzLsb2c

  • Nice tutorials, going to go through them all when I have time :)

  • @Lixen I hope you continue with them. The difficulty definitely ramps up from here, but if you stick with it you'll understand in no time. C++ is about 20% language and 75% syntax, 5% memory.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • thx for your help i just reinstalled everything and it all worked fine after, that is a good solution if anyone else runs into this problem

  • I like how you explain things good job

  • @FoxHoundUnit89 You're welcome. I'm still trying to find a more straightforward way to work the compiler than that, but I haven't seen anything on the netbeans documentation about it.

  • @SkyeShatter That fixed it. Thanks for that and thanks for all these videos, they're very well made.

  • @FoxHoundUnit89 Try restarting the compiler, There are times when the compiler kind of 'locks up' and needs to be restarted. It shouldn't happen, but it does. If that doesn't solve it, please copy paste your code to ideone.com and send me a link and I'll see if anything is wrong.

  • I write this program exactly as you have it and it does nothing. It doesn't give me an error, but it also doesn't prompt for the variables.

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