i already have this
std::string str_1, str_2, str_3, str_4, str_5, str_6, str_7, str_8;
std::string str;
std::getline(std::cin,str);
std::istringstream iss(str);
iss >> str_1 >> str_2 >> str_3 >> str_4 >> str_5 >> str_6 >> str_7 >> str_8;
input: h e l l o (in one string)
output: str_1 =h str_2 =e str_3=l str_4=l str_5=o
this is what im trying to achieve
input: hello (in a single string using cin)
output: h e l l o (in 5 seperate strings)
i need the input to be in one string beacus the amount of characters the user inputs varys
cin >> str_1 >> str_2 >> str_3 >> str_4 >> str_5 >> str_6 >> str_7 >> str_8 >> endl;
wont work beacus you have to declare all the variables