I am trying to make a class that is created based on user input. I was wondering if it is possible, and how to, create an instance named with a variable that will change based on user input.
Something like this:
int main() {
std::cout << "Name the File You Would Like to Create: ";
std::cin >> create_file;
POI create_file;
create_file.poi_add(create_file, 1, 12, 7, "unknown");
std::cout << create_file.poi_name();
}
Friendly reminder to be nicer to new posters. Yes, double-posting is ill-advised, but most learn after the first time. We can show more restraint before applying the banhammer.