char陣列 轉string的方法:可以通過直接賦值的方法來實現,如【char a[]=" abc d\0efg ";string s=a;】。如果要實現string轉char陣列,可以呼叫strcpy ...
確定! 回上一頁