Added: 11 months ago
From: thenewboston
Views: 27,813
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (37)

Sign In or Sign Up now to post a comment!
  • Hmm maybe bucky could create a new type pf programming

  • Been messing around with java and c++ lately and they both are equaly the same :O, like the import of library's is also in java, the layout of the source code is also the same in java. Oh i'm so loving this..

  • but still thx for stating his/her errors

  • @winxpproff @bireno

    guys chill he alex was just tryna clarity it for us, thx man

  • Comment removed

  • @Xemerau Yes, you have to download and install a program like codeblocks, visual studio, dev C++, and many other compilers.

  • the compiler reads the text from top to bottom so if you write:

    int tuna = 99;

    cout << tuna;

    tuna = 48

    cout << tuna;

    the cmd will show first the first number then the second like this:

    99

    48

    Thumbs up so people see!

  • @AlexAvlonitis Actually, if you write that ("tuna = 48"), you're going to get a debug error because you forgot your semicolon

  • @Bireno LOL

  • @AlexAvlonitis thx cpt obvious

  • @AlexAvlonitis

    That is because you type int tuna = 99; , and you tell computer tuna is 99 than you type cout << tuna; and tell computer to print that, than you type tuna = 48; and tell computer to change tuna to 48 and cout << tuna; to print that. That is the reason why coputer do that. If you do that what you tell us you will get not

    99

    48

    you will get

    9948 because you dont tell computer to make a new line.

  • @AlexAvlonitis acctually it says 9999

  • @mw2isepic1 9948

    @AlexAvlonitis Captain Obvious

  • @AlexAvlonitis NO SHIT SHELOCK

  • @AlexAvlonitis Well, you printed the number before the variable changed and printed it after you changed it... Also it would output "9948" because you forgot the "/n".

  • @AlexAvlonitis actually it'll come out like 9948, you didn't tell it to endl or \n

  • @AlexAvlonitis WRONG!

    1.- Every statement MUST end in a semicolon, (read "tuna = 48")

    2.- Wrong output also, that code would print: 9948, because you never ended the line!

  • @AlexAvlonitis wheres the << endl?

  • @tibiaowned1 grr, you don't download a C++ :P

  • @Xemerau Yh learned it now :P ! ;)

  • You can but if you have a error and you want to declare a var later or not tell what it equals to the PC,

    then use that and remember to input cout << crap << endl; at the end so it out puts in the command. 

  • @SilentDevv Here is the error: Do not put: = 10 when you want to declare it later leave it blank...

    Here: int crap;  crap = 11;

  • thank you man !!!!

  • @tibiaowned1 /watch?v=tvC1WCdV1XU ;)

  • i was wondering why mine said error when i had sum = a - b; ... it was because i forgot to define sum before so when i put int sum; .... it worked.

  • Keep them coming Bucky! :D

  • do you need to define the type of variable?

  • please upload javascript tutorial 41 and next.....

  • @bomer890 Asking him to finish a programming series? NONSENSE!

  • second

  • first :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