I have a string from an array:
this->ramStringInput[titleIndex][0];
and an string..int which is an index from a loop:
std::to_string(titleIndex)
I've tried:
this->ramStringInput[titleIndex][0] + std::to_string(titleIndex)
but that is a literal 'Title1'. Which is not what I'm trying to do.
Is there a way to concat those two vars to access this->Title1?
getline (cin, this->ramStringInput[titleIndex][0] + std::to_string(titleIndex)); //not working
vs
getline (cin, this->Title1); //Would work, but can't do from a loop.