Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First time programmer, needs advice!

Status
Not open for further replies.

District

Technical User
Sep 25, 2002
1
US
Hello! I've been reading a few of the postings here and noticed that everyone here seems well-versed in C++. That being said, I was hoping you could lend me some of your expierence. I'm currently taking a C++ course and have been assigned the task of writing a small program. All this program does is open two files, reads them, writes them both to a new file, then closes them. Oh yeah, and the data limit is 72 characters.

The two files I'm supposed to use, can be found and
I've gotten started on the program a little, but am at a loss as to how to proceed. And when I say a little, I mean something like this:

main()
{
}

So, any help would be appreciated!
 
always start with pseudo-code, maybe something a little like:
Code:
main()
{
//open output file
//open address file for input

//loop until end of address file
    //read from address file
    //write to output file
//close address file

//open letter file for input

//loop until end of letter file
    //read from letter file
    //write to output file
//close letter file

//close output file
}
Break up a program into separate tasks, then you figure out how to do each task and impliment and test one at a time (use lots of print statements (cout's)).

Hope this helps kick you off in some direction. ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top