+ 2

How to use file handaling / data structures in my project of c++?

hey there ✌I have made a simple rock paper scissors game in c++(by using Rand() and loop) but I want to modify my project by using FILE HANDLING OR CONSTRUCTORS.. 🙏 please suggest some ideas or source code eg. Score board feature or any other feature that would involve use of data structures..

7th Dec 2017, 4:16 AM
Brijesh
Brijesh - avatar
1 Odpowiedź
+ 4
Perhaps you may try saving highscores of the game, or you may add a save and exit option where the user can continue adding to his streak the next time he plays against the computer. So you will need a class to maintain the states of the game, to load old game records or create a new one, and files to store each user's data and a file to store the best 5 high scorers of all time.
7th Dec 2017, 4:39 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar