cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Keeping a Variable
Keeping a Variable
Jan 3, 2011 at 8:08pm UTC
Gene
(38)
Hi, I was wondering if there was anyway to set a member variable to an int in such a way that if the program sets it to something, the next time you open up the program, it will still be that number, ie: it doesnt reset
Jan 3, 2011 at 8:08pm UTC
filipe
(1165)
You'll have to save in a file:
http://www.cplusplus.com/doc/tutorial/files/
Jan 3, 2011 at 8:39pm UTC
Gene
(38)
Thanks
Topic archived. No new replies allowed.