|
-
October 12th, 2009, 04:57 PM
#1
C++ new line HELP
Hi guys can you guys help me cut this line into three lines because it is too long right now. I've tried using \n and endl but it ends up having errors when i compile it.
cout << "The average rainfall for "<<month1<<, "<<month2<<" and "<<month3<<" is: " << average << " inches"<< endl;
I need to seperate that into three lines so it displays like this.
The average rainfall for
January, February, and March
is: ____ inches.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|