C++ 输入后过滤换行符

版权声明:博客注明来源即可。 https://blog.csdn.net/u014027680/article/details/83005036

来源:我的博客站 OceanicKang |《C++ 输入后过滤换行符》

std::cin.ignore(100, '\n');

猜你喜欢

转载自blog.csdn.net/u014027680/article/details/83005036