C++ Console Lesson 4: Basic Data Types
Posted on
More at xoax.net This C++ video tutorial explains the four most basic data types in C++. Please submit all questions to our forum xoax.net
Video Rating: 4 / 5
More at xoax.net This C++ video tutorial explains the four most basic data types in C++. Please submit all questions to our forum xoax.net
Video Rating: 4 / 5
November 29th, 2011 - 13:30
@LygisLT15 I’am a Lithuanian too xD
November 29th, 2011 - 13:40
OMG THERE IS NO STRING?!
November 29th, 2011 - 14:01
@xXAceyboyXx Basically it means the main function has no output. If I remember correctly this is not allowed for the main function, but I’m not sure so don’t take my word on that. (There’s a reason why I’m watching this video obviously, I’m getting back to grips with C++…)
November 29th, 2011 - 14:08
the other videos have a better audio-qualitiy
November 29th, 2011 - 14:26
scratch that had return 0 still up
November 29th, 2011 - 14:47
how do you keep you window up where it says press any button
like when i typed g and hit enter i quickly showed the other g
and closed down?
November 29th, 2011 - 15:25
@lolfreak21196 because you might want to use only numbers in your program.
November 29th, 2011 - 15:33
im confused! if char can manipulate numbers, then why bother ever using int?
November 29th, 2011 - 16:20
nice vids! I even got to my own solution for the program not closing before i could read the output! i just added “std::cin.get();” twice. one in between the first action and one at the end!
November 29th, 2011 - 17:05
dude your very good teacher
November 29th, 2011 - 17:47
dude, i think something happened to your Mic… :S
November 29th, 2011 - 18:00
is it empty prosect Im gonna use?
November 29th, 2011 - 18:42
@CrimsonTuber Don’t use void main()
November 29th, 2011 - 19:41
@fayaz0707 I believe that main must ALWAYS return an int value to let the compiler know it built successfully. In other languages I am pretty sure main doesnt have to return int (like Java would be, public void main()) Just safely assume to always use int main().
November 29th, 2011 - 19:44
@TheAlascar
You would use string but that is not included in the iostream include you will have to add in
#include -string-
November 29th, 2011 - 20:14
@petsoukos I believe void means that you do not have to include the “return 0″ statement.
November 29th, 2011 - 20:34
void main() vs. int main() ???
November 29th, 2011 - 20:42
@TheSpleenmaster
LOL
Thanks
November 29th, 2011 - 21:16
@qwas12348gr5 Int is faster, you don’t really notice it now, but later on you will.
(XD, that’s what my programming teacher says. DOUBLE FTW!!!!!)
November 29th, 2011 - 21:25
Thanks, I am now learning Visual C++.
November 29th, 2011 - 22:16
It seems to me like double can do everything that int can do, so is there really a point in using int at all? Ever? Thanks, subbed.
PS: I would be happy if anyone answered
November 29th, 2011 - 23:07
@Magix1reaper its not just variables, everything is c++ is case sensitive
November 29th, 2011 - 23:29
@Magix1reaper its also wrong because cin goes this way >>
November 30th, 2011 - 00:24
One word of caution for those who are beginners; the following code would be wrong;
int ifull;
cin<
the reason being is that when an int or other variable is declared it is case sensitive.
November 30th, 2011 - 00:49
i continue to learn because of you.