I am making a new game and i am a beginner in C++
I was trying to make a load function but the problem is
that i need to define the fstream in the load() too
I have already written it in main() but it says it is not
declared in load(). Is there a way i can make it load using
the other function?
I want to read from a file after writting in the file.
Or can anyone give me a save/load game sample just to have an
idea.
How can i use a variable inside a function in another function?