Is a pointer remembered after closure?

Is a pointer remembered after you close the program? so that, when I open it next time, it stills knows the value?

Xander
No.
Furthermore, no state remains after a program terminates.
Is there any possible way to memorize variables? (in a console app)

Like if you want to make games and such
Save the information to a file.

If you notice many games have "Save Game" and "Load Game" options.

You might want to look at ofstream and ifstream:

http://www.cplusplus.com/doc/tutorial/files/
Last edited on
Ok thanks Galik!
Topic archived. No new replies allowed.