I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM?
sohamghosh
0
Newbie Poster
Recommended Answers
Jump to PostWell You should use files to store data and get back data in the beggining stages.
filestreams would help you out with that.
Try googling out filestreams with c++ for a tutorial.
Jump to PostThere are several ways...
The most popular way would be to save the information to a file then retrieve it later.
Another popular way that isn't done unless absolutely necessary is by querying information to a database then retrieving it later.
There may be a way to …
All 5 Replies
Sky Diploma
571
Practically a Posting Shark
Alex Edwards
321
Posting Shark
grumpier
149
Posting Whiz in Training
Alex Edwards
321
Posting Shark
sidatra79
36
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.