Making columns!!!!!!!!!!!!!!!!!!!

Hi,
I wanna ask you how to make a file that composed of just 2 columns(each column contains nearly 20000 lines) and then open it.I need a program with c++.Furthermore,this c++ program have to contain these commands;ifstream,float,

for(int i=0,i<20000,i++) goes like that.Can you help me if you have a knowlodge of it???İt's emergency.I need your help.Thanks from now........
You need to at least try it yourself, and post what you have. We will help fix some of your problems, but we won't do your homework for you.
Doesn't sound to hard - so do what grcunning said. Then we can all help you :)
It's easy to say that,but I tried so hard.I couldn't run it.:((I've got some problems with c++ and ı need a little help not too much.:((please give me some advices...I don't want all of the thing from you......just a little clue....???
making two columns is easy, just use a tab character. If you want more help post the code you have so far. It should be relatively short.
So you have two blocks of data, each containing 20k lines.

Output line 1 from data block 1.
Output tab to seperate columns.
Output line 1 from data block 2.
Output endline to finish off the first line.

Repeat that sequence 20k times. Possibly replace tab and endline with whatever seperator and delimiter you want to use.
Topic archived. No new replies allowed.