随笔分类 -  C++用法 / 字符串操作相关

摘要:/// <summary>/// 分割字符串/// </summary>/// <param name="str">字符串</param>/// <param name="split">分隔符</param>/// <param name="res">子字符串集合</param>void Strin 阅读全文
posted @ 2023-02-12 22:29 爱编程的顺 阅读(88) 评论(0) 推荐(0)
摘要:利用标准库的to_string函数 测试程序: void test(){ vector<string> joints; for (int i = 1; i < 6; i++) { string str = "joint"; str += std::to_string(i); joints.push_ 阅读全文
posted @ 2023-02-11 07:31 爱编程的顺 阅读(317) 评论(0) 推荐(0)