[prog] Re: more C++

olearyck at slu.edu olearyck at slu.edu
Sun Dec 14 11:14:41 EST 2003


If you called three integers a, b, and c and wanted to print them in order 
with spaces between, the following line would work:

cout<<a<<" "<<b<<" "<<c;
(note that there is one space inside each pair of "")

In order to use this, you need to include iostream, and you might need to use 
std::cout or something like that (I'm used to older compilers that aren't 
picky about this) rather than just cout.





More information about the Programming mailing list