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..
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 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".
Hmm maybe bucky could create a new type pf programming
ZeBeaupre 5 months ago
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..
CockatooFilms 6 months ago in playlist TheNewBoston - C++
but still thx for stating his/her errors
unitersite 7 months ago
@winxpproff @bireno
guys chill he alex was just tryna clarity it for us, thx man
unitersite 7 months ago
Comment removed
penifest09 8 months ago
@Xemerau Yes, you have to download and install a program like codeblocks, visual studio, dev C++, and many other compilers.
thegamerscastle 9 months ago
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 9 months ago 70
@AlexAvlonitis Actually, if you write that ("tuna = 48"), you're going to get a debug error because you forgot your semicolon
Bireno 9 months ago 85
@Bireno LOL
penifest09 8 months ago
@AlexAvlonitis thx cpt obvious
roflcopter105 9 months ago
@roflcopter105 lol
Samirk92 9 months ago
@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.
WinXPproff 7 months ago 4
@AlexAvlonitis acctually it says 9999
mw2isepic1 2 months ago
@mw2isepic1 9948
@AlexAvlonitis Captain Obvious
XKillerBoy 3 weeks ago
@AlexAvlonitis NO SHIT SHELOCK
xXxDiukexXx 3 weeks ago
@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".
ChuckTheDuckNorris 2 weeks ago in playlist C++ Programming Tutorials Playlist
@AlexAvlonitis actually it'll come out like 9948, you didn't tell it to endl or \n
warriorsfan12331 1 week ago
@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!
nusgo 1 week ago
@nusgo
DjSpunz 5 days ago in playlist C++ Programming Tutorials Playlist
@AlexAvlonitis wheres the << endl?
DjSpunz 5 days ago in playlist C++ Programming Tutorials Playlist
@tibiaowned1 grr, you don't download a C++ :P
Xemerau 10 months ago
@Xemerau Yh learned it now :P ! ;)
tibiaowned1 10 months ago 3
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.
SergeantNugget 10 months ago
@SilentDevv Here is the error: Do not put: = 10 when you want to declare it later leave it blank...
Here: int crap; crap = 11;
SergeantNugget 10 months ago
thank you man !!!!
tibiaowned1 10 months ago
@tibiaowned1 /watch?v=tvC1WCdV1XU ;)
TheEzimer 10 months ago
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.
iYateszy 11 months ago
Keep them coming Bucky! :D
Fbiman93 11 months ago
do you need to define the type of variable?
OCoptimusconvoy 11 months ago
please upload javascript tutorial 41 and next.....
bomer890 11 months ago
@bomer890 Asking him to finish a programming series? NONSENSE!
keez1994 11 months ago
second
MrJimarla 11 months ago
first :P
tarabatota 11 months ago