I have a code written that performs this task to a certain extent. But, I would like to how to alter my code so that I can store as many string inputs the user wants to ente
There are much simpler approaches to parse an input string using stringstreams:
string a; vector objects; for(stringstream sst(input); getline(sst, a, ','); ) // that's all ! objects.push_back(a); copy (objects.begin(), objects.end(), ostream_iterator(cout," ; ")); // display all
Online demo