Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 29th, 2006, 1:19 PM   #1
can342man
Newbie
 
can342man's Avatar
 
Join Date: Jan 2006
Location: London, Ontario, Canada
Posts: 16
Rep Power: 0 can342man is on a distinguished road
Cool column output?

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
can342man is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:18 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC