隨著 cin >> number 之前的命令 getline() 命令(我猜這是問題),它不允許我輸入名稱。為什麼? ... char c; while (cin.get(c) && c != '\n') if (!std::isspace(c)) ...
確定! 回上一頁