How to make a c++ program which saves data so that next time I open the program it dosent restart but load the saved data? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to make a c++ program which saves data so that next time I open the program it dosent restart but load the saved data?

C++ Program which saves data.

19th Feb 2018, 2:53 AM
S-Y 007
S-Y 007 - avatar
3 Answers
+ 4
Here is my most recent code using file saving, as an example. - writes to file ( saves) - closes file - reopens file - reads data ( loads ) Has to be done all in one code. Files are not saved on Sololearn. After the file runs EVERYTHING is erased. To really understand files you need an IDE a knowledge of files with cpp. - If you have not already finish the C++ course. If you are just starting without doing so the code would/will not make any sense https://code.sololearn.com/cjZfN8zIvkrt/?ref=app
19th Feb 2018, 3:46 AM
Manual
Manual - avatar
+ 3
Working with files is in the last module.
19th Feb 2018, 2:58 AM
Jacob Pembleton
Jacob Pembleton - avatar
+ 3
Sure first you need an IDE and to finish the C++ course. Visual studio 2017 -Mac and Windows 10 https://www.sololearn.com/discuss/410578/?ref=app Another IDE option IDE Code::Blocks - Cross Platform ( Mac, Windows, Linux) https://www.sololearn.com/discuss/608805/?ref=app
19th Feb 2018, 3:42 AM
Manual
Manual - avatar