Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago