|
-
July 3rd, 2003, 09:24 PM
#1
A somewhat of an advanced C++ question
Alright guys this isnt security related but i have to turn in a program in about 5 hours to my instructor and i am stuck. None of the consultants know how to do it (which isnt very encouraging). Anyways i thought maybe someone here could give me some hints or push me in the right direction. Here is what the program has to do:
Write a program that opens two text files for input and one for output. The program concatenates the corresponding lines of the input files, using a space as a seperator, and writing the reults to the output file. If one file is shorter than the other, the remaining lines in the longer file are also copied to the output file. For example, suppose the first input file has these contents:
eggs kites donuts
balloons hammers
stones
And suppose the second input file has these contents:
zero lassitude
finance drama
Then the resulting file would have these contents:
eggs kites donuts zero lassitude
balloons hammers finance drama
stones
PLEASE HELP ME!!! Post as soon as you can!!!
Support your right to arm bears.

^^This was the first video game which i played on an old win3.1 box
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|