为什么程序会直接跳过getline函数呢?
运行时直接跳过了函数getline是为什么呢?
试试看1cin >> str;2char ch[100];cin.getline(ch, 100);string str(ch);