Question 1: I want to create a save file for a game im creating in C++ problem is i can only use the vanilla headers in dev-cpp (which spawns another question id like to have answered/suggestions), my main problem id like to get past, is how the easiest format/way of the program creating multiple files, and reading from them. (Note: this will be a decent discussion, as im looking to learn and will most likely be asking 50 questions for every answer i recieve, as i am trying to program my first game in C++ that wasn't as simple as blackjack...(more time consuming than anything in that case, a fair bit of thinking and if/else/else if statements))
Question 2: as ive stated, i need to use a vanilla dev-Cpp as im sure my teacher (to which this program is being handed into, will most likely not have, or prefer i don;t complicate and use new headers(not to say im not already going a bit over and above with a save function in this case)) Actual Question: I need game ideas... Extra info/Description :A game that has no images is pretty boring, and a long text game takes far too long for the time i have (roughly 3-4 weeks, to hand in)my idea was mastermind, to the explanation goes as follows: MasterMind is a number game. The computer will select a secret number with five different (unique) digits. The object of the game is to guess that secret number. Each guess is answered by the number of digits in the guess number that match or occur in the secret number. You will also be told how many of the digits are in the correct position in the secret number. Through a process of elimination, you should be able to deduce the correct digits using logic.
For example:
If the secret number is "12359"
- you enter "11359"
The computer will report "Number Correct = 4" and "Correct Position = 4"
- you enter "55555"
The computer will report "Number Correct = 1" and "Correct Position = 1"
(copy and pasted from http://www.easysurf.cc/master3.htm)
So , to begin. im going to mention im pretty new to Coding, as im sure you could expect from my title. soo to get to the point... My thoughts lead me to using a counter in a loop, simply to read multiple files, and check the profile name pertaining to them, as to find the correct one, or what actually just came to mind which should work much better is just having them enter a profile name, first it searches for it, using filename, if it doesn't exist it creates a new one, if it does then it reads into it (i believe i already know how to create a password protection (very primatively however)).
thanks for reading, i know its a bit long, especially for the simplicity of the problem. However i can see it will be answered in multiple ways, and there is most likely easy ways to do certain things, moreso than i currently know.
also, tried to put this into the game development thread, but couldn't figure out how...
will post code snippets as soon as i organize and create a ramshackle attempt at the base of the save/load function and Game format