Create a class called \'Map\'. This class should have the following variables (o
ID: 3637419 • Letter: C
Question
Create a class called 'Map'. This class should have the following variables (or 'fields') - Add code (called 'methods' or 'functions') to the class to allow external code to get and set the contents of these fields. Write a main application that creates a DataEntry object, and use the methods from Step 2 to setup the fields with some test data. You may choose what this test data is. Consider how you are setting up the 'Grid' field - experiments with different ways of setting it up, some ways are more efficient than others.Explanation / Answer
#include using namespace std; class map {public: int Grid[16][16]; int position; public: void get() {coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.