0

C++ and remembering data

Hey. im looking for the way to remember the results from c++ program. a thing is, im going to add something every day and i need program to remember what i was adding last days from the first day of the month. is a easy way to do something like this?

20th Feb 2017, 5:46 PM
Aleksandra Kobusińska
Aleksandra Kobusińska - avatar
1 Odpowiedź
+ 8
The first thing which comes to mind is by utilising <fstream> to write and read to a text file so that your results can be somewhat 'saved' and 'loaded' whenever needed. I created a diary with that, so yes it is perfectly possible and feasible. However, there is a catch if you are not familiar at dealing with files in C++. A lot of reference may be needed.
20th Feb 2017, 5:50 PM
Hatsy Rei
Hatsy Rei - avatar