c++ cin輸入空格

直接添加一行代碼:ios cin >> noskipws; noskipws 實例:web #include<iostream> using namespace std; int main() { cin >> noskipws;//設置cin讀取空白符; char c; size_t acount =0, ecount =0, icount =0, ocount =0, ucount
相關文章
相關標籤/搜索