![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jan 2006
Location: London, Ontario, Canada
Posts: 16
Rep Power: 0
![]() |
Hi everyone,
Really appreciate all the great help in the past. This might be something very simple but because I am new to C++, I don't know it. If I wanted to print out a set of numerical data from a 'cout' or 'out' statement so that the data is formatted into 2 columns in such a way that it will be read as 2 separate columns in a spreadsheet. cout << a << b << endl; or out << a << b << endl; Where 'a' and 'b' would be variables generating a stream of numerical data. I have tried the '\t' and 'setw (n)' options but it doesn't format it into 2 separate columns of data that can be read by a spreadsheet. Is there another function or manipulator that I am unaware of that can accomplish this task? Thanks a lot, really appreciate it.
__________________
Greatness courts failure and solitude. --- Anonymous |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|