I am trying to get a string with 8 characters long from the user. User have to enter the string continuously. Once the string reaches 8 characters, it has to go next line of the code.
I've already tried with Arrays, and loops. But, It requires the user to hit enter after getting each character.
string str;
int b;
std::cin>>str.length(8);