01 2020 档案

摘要:1 //c++给定字符分割 2 #include<iostream> 3 #include<vector> 4 #include<string.h> 5 using namespace std; 6 int main() 7 { 8 /* 最终把要分割的字符串根据给定分隔符划分为多个短的字符串*/ 阅读全文
posted @ 2020-01-12 10:37 念秋 阅读(211) 评论(0) 推荐(0) 编辑
摘要: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;/* 阅读全文
posted @ 2020-01-12 09:58 念秋 阅读(5767) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示