what does "cout" mean.... what does it do, I find Im typign it alot... even in the lil "hello world!" source.
Printable View
what does "cout" mean.... what does it do, I find Im typign it alot... even in the lil "hello world!" source.
cout is a member of the ostream class, and provides output to the standard output stream (more often than not the screen, but not limited to just that)
http://www.cplusplus.com/doc/tutorial/tut1-4.html
http://www.cplusplus.com/ref/iostream/ostream/
Browse, read, learn, enjoy.
hmm, well first of all it is pronounced as 'Edited by moderator'.
As far as what it does, look it up in a textbook or ask your teacher.
Cout - "C Out". As in "C Output"
Cin - "C In". As in "C Input"
And don't read Troll_King's first line :D
thanks mario and azuth, lmao troll king. Thanks for the links and expecially that basic understanding mario just told me... makes sense 10x +
Okay, i have been reading atutorial on C++ but it never explains what "int" is for..... from all these questions you can tell im really interested in becoming a C++ programmer. Will someone give me a basic understanding of what it means (like the cout thing)... thanks.
"int" is a keyword. it is used to denote an integer value, or a pointer to an integer ieAll variables must be declared in a similar manner:Code:int *p
A pointer has an asterisk before the variablename. Note that any structs, classes, or pointers must be allocated. Since these are more complex, I would suggest you find a tutorial to explain them. If you want a place to start, I would suggest the one on this site. Also, for reference on the basics I'd suggest that you pick up a copy of "The C Programming Language" 2nd edition by Kernighan and Ritchie. It is a C reference, but is a good place to get grounded on the basics, since C++ was based on C.Code:variabletype variablename
cout is :
(c)onsole (out)
cin is:
(c)onsole (in)
you don't learn very much by reading tutorials, have a look at:
http://newdata.box.sk/bx/c/index.htm
there you'll find a whole book
cout stands for console output. It's an object of the ostream class. cin stands for console input, it's an object of the istream class (I think).
Int is a keyword used in C/C++ for declaring integer types which are usually 32 bits in size.