When reading a stream from the command line into a variable using std::getline does not allow entering data, jumps. How can I read a string with spaces in a variable by avoiding my problem in std::getline
std::string fio; std::string citi; int id; std::cout << "Введите id(число) абонента: "; std::cin >> id; std::cout << "Введите ФИО абонента: "; std::getline(std::cin, fio, '\n'); std::cout <<"Введите город абонента: "; std::cin >> citi; CONCLUSION:
add subscriber to user group
Введите id(число) абонента: 12 Введите ФИО абонента: Введите город абонента: