Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Fast question regarding C++
Closed Thread
Old 07-17-2007, 06:35 PM   #1 (permalink)
Rouen's Avatar
 
True Techie

Join Date: Mar 2005

Posts: 235

Rouen is on a distinguished road

Send a message via AIM to Rouen
Default Fast question regarding C++

I've been studying C++ for a few months now and am working on a project, which is essentially a finance calculator which has been specially tailored to a single person's need. She liked the first draft of the functioning .exe, but has asked for a few add ons.

The one I am the most baffled about, probably because I haven't gotten to learn this feature in the C++ library yet, is how to save the outputs of a C++ program (command line, no GUI) to a text file, then reload it for comparsion to the outputs of the current running program. The idea:

Save the amounts for her bills for one month once she finishes. Next month when she needs to use the program again, after she inputs the numbers for the month, it loads the file from the previous month, then displays the differences between this month and last month. This is to see which bills are costing more or less, such as electric bills.

****Doing the comparing shouldn't be difficult at this stage, but I don't know how to create save and load features.****

Can anyone just give me the shimmy on it, and I research the rest? Thanks a bunch.
Rouen is offline  
Old 07-18-2007, 07:16 AM   #2 (permalink)
 
Newb Techie

Join Date: Jul 2007

Posts: 20

Wolff is on a distinguished road

Default Re: Fast question regarding C++

You're talking about basic file operations right?

One tutorial:
Input/Output with files

Basically, using iostream and fsstream it is easy to read and write to and from files in C++. The above tutorial coves the basics pretty well.
Wolff is offline  
Old 07-21-2007, 01:03 AM   #3 (permalink)
Rouen's Avatar
 
True Techie

Join Date: Mar 2005

Posts: 235

Rouen is on a distinguished road

Send a message via AIM to Rouen
Default Re: Fast question regarding C++

Looks informative, I'll start cracking on it now. Thanks a bunch.
Rouen is offline  
 
Closed Thread

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question using RadioButton in VB.Net punkin Programming Discussions 4 07-08-2007 11:20 PM
Mobo Question Indobos Building, Buying, or Upgrading High Performance PC Systems 9 06-28-2007 11:45 PM
Ram OC question zetahammy Overclocking, Case Mod, Tweaking PC Performance 0 06-16-2007 01:18 AM
Help me clear something up please(Fresh install of xp type question) jonny_uk Windows Operating Systems and Software 2 04-21-2007 06:38 PM
Case Fan Question Shafra Overclocking, Case Mod, Tweaking PC Performance 10 04-18-2007 06:42 PM