
字符串操作
文章平均质量分 51
shigzhu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
读写文本文件
bool ReadTxtDoc(string strFileName, vector<string> &strLogInfolist){ bool bRet = false; FILE * fp = NULL; fopen_s(&fp, strFileName.c_str(), "rb"); if (fp != NULL) { char szParamInfo[2048]; // 每次读取2KB(包含结束符...原创 2021-07-31 16:42:48 · 106 阅读 · 0 评论 -
tinyxml2创建、读取、修改文件通用操作
#include "../TinyXML2/tinyxml2.h"int test_tinyxml2_create(){ const char* declaration = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; tinyxml2::XMLDocument doc; tinyxml2::XMLError ret = doc.Parse(declaration); if (ret != 0) { ...原创 2021-07-31 16:03:41 · 933 阅读 · 0 评论 -
VC实现字符串的解析
利用模板类实现字符串的拆分、按照分隔符连接字符串、格式化字符串、模板类解析字符串原创 2019-12-20 23:55:08 · 206 阅读 · 0 评论 -
C语言字符串拆分成字符串数组方法
#include "stdafx.h"#include <iostream>#include <vector>#include <sstream>using namespace std;typedef vector <string> StringArrayC;bool Str2StrArray(const string& s...原创 2019-12-20 23:47:06 · 5241 阅读 · 0 评论