string str; cin>>str;. Remember scanf() can't take input of string data type. This has advantage of variable length you can have any length string input to ...
確定! 回上一頁