Name: patrick s (by patricks) Date: August 31, 2007 at 21:09:44 Pacific Subject: Help for a newbie. OS: Windows XP CPU/Ram: Athlon 64
Comment:
Hi, I borrowed a book called "Teach Yourself C++ in 21 Days" and am trying to learn to program with it. I was going along fine until I hit this program: #include <iostream> int main() { int x = 5; int y = 7; std::cout << endl; std::cout << x + y << " " << x * y; std::cout << end; return 0; } This one won't compile. Anyway, I dug around in help files until I got the vague idea I should put endl and end in quotations. It seemed to work after that, but I don't really know what I did. Was this the best solution, or is there something else I should have did? Thanks, Pat
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE