01 2020 档案
摘要:1 //c++给定字符分割 2 #include<iostream> 3 #include<vector> 4 #include<string.h> 5 using namespace std; 6 int main() 7 { 8 /* 最终把要分割的字符串根据给定分隔符划分为多个短的字符串*/
阅读全文
摘要:1 //char数组和string的转换 2 #include<iostream> 3 #include<string.h> 4 using namespace std; 5 int main() 6 { 7 char ch[]="hello world"; 8 // string s=ch;/*
阅读全文