摘要:
//char[]转stringstring mm = "woshicainiao";char[] ss = mm.ToCharArray();string AA = new string(ss); 阅读全文
摘要:
将文件路径以"\"隔开,这货搞了我一小时...C++返回一维数组,字符串数组还是要再看看void fileNameDiscompose(string road,string s_array[30]){ int block = 0; //string s_array[30]; //局部变量,如果使用return外面得不到想要的 string tmp = ""; for(int i = 0; i < road.length(); i++){ if(road[i] != '\\'){ tmp += road[i]; } ... 阅读全文