View Single Post
  #6 (permalink)  
Old 07-07-2008, 10:54 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: new programer, help this question! thank you!

You don't need the print function. Just do this:

Code:
cout << x << /*some form of separation here, like a space*/ << y ... << endl;
I think (maybe) part of what's confusing you is that the output doesn't have any separations between fields, so instead of getting 123 45678.9 you get 12345678.9.

Last edited by dargueta; 07-07-2008 at 10:54 PM. Reason: Fixed formatting
Reply With Quote