is it possible to do an array of strings?
It is possible to have an array of strings. However, you may find it better to have a std::vector<std::string>
Code:
// create a vector of 6 default initialised strings
std::vector<std::string> start(6);
// populate the strings in the vector with the desired values
start[0] = " _____________ ";
start[1] = "| ___ |";
start[2] = "| |_ _| |";
start[3] = "| |";
start[4] = "| | | |";
start[5] = "|_______| |___|";
^where the variable y and x are input by the user. It wont let me use a pointer there. Is there any other alternative?
It depends on what exactly you want to do, but with this vector of strings you may be able to write:
Code:
start[y].replace(x, 1, "X");