當cin讀取到空格、TAB、Enter的時候就會停止. 所以想要輸入字串就用(標頭記得打上#include <string.h>). string input;. getline(cin,input);.
確定! 回上一頁