char* ptr = "abcd"; string s(ptr); // s = "abcd"; char c = 'a'; string s2; s2 += c; // s2 = "c";. 1; 2; 3; 4; 5; 6. 2.2、strng转char星、char:
確定! 回上一頁