View Single Post
  #1 (permalink)  
Old November 8th, 2003, 02:05 PM
kevin777 kevin777 is offline
Authorized User
 
Join Date: Sep 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Continuing a line of code in C++

I have a long line of code:

cout << "Your gas mileage for this trip is: " << setprecision(5) << milesPerGallon << " MPG " << endl;

How do I continue this string literal to the next line without breaking the code? I know in VB you use & _ but how do you continue a line in C++?

Thanks in advance...Kevin

Reply With Quote