... 印出llo Wo. 指派字串字面給string變數時,一定要用雙引號,不可用單引號指派字元 ... string myString = "ABCDE"; cout << myString[2] << endl; //印出C.
確定! 回上一頁