Question
using c++ code you will create a video game character management program. We will be using a vector of structs as the basic data structure
using c++ code
you will create a video game character management program.
We will be using a vector of structs as the basic data structure to manage our characters.
You will need to define a struct for your character with at least 5 fields. The fields you choose should be relevent to characters in a game that you imagine. For example: if you imagine a futuristic fish underwater rpg.. you may have a name field, a species field, a attack type field, an HP field and a damage field among others.
Your project will also use basic file I/O with text files. Please download and experiment with the fileIO.zip from doc share. It contains a basic file I/O example.
When your program begins you will ask the user if they would like to load data from a file, enter it manually or generate it randomly. Entering it manually or generating it randomly should be similar to project 3, however the data will now be stored in a vector of structs. If you are reading your data in from a file, you should generate the vector of structs from the inputted file data.
After your data is inputted, the user should be able to sort from any meaningful field. Your user should also be able to select a single character to view, modify or delete. Your user should also be able to add characters. The user should be able to continue to sort the characters after the data has been changed.
When done the user should be able to save the data to a file to use next time.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started