![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
GY_Nan
天街小雨润如酥
展开
-
C++ CFileFind() 查找当前路径下所有文件夹名称
#include "stdafx.h"#include "afx.h"#include <opencv2\highgui\highgui.hpp>#include <iostream>using namespace std;using namespace cv;const CString origiImgFilePath = "E:\\expriImg\\17peopleFigure\\*"原创 2017-08-17 10:06:40 · 1682 阅读 · 0 评论 -
C++基础-string截取、替换、查找子串函数
转自:1. 截取子串 s.substr(pos, n) 截取s中从pos开始(包括0)的n个字符的子串,并返回 s.substr(pos) 截取s中从从pos开始(包括0)到末尾的所有字符的子串,并返回2. 替换子串 s.replace(pos, n, s1) 用s1替换s中从pos开始(包括0)的n个字符的子串3. 查找子串 s.find(s1)转载 2017-08-21 09:41:14 · 6307 阅读 · 0 评论 -
分割字符串
1。strtok分割#include "stdafx.h"#include "stdio.h"#include <iostream>#include <fstream>#include <string>#include <map>#include <vector>using namespace std;int _tmain(int argc, _TCHAR* argv[]){原创 2017-09-20 11:44:07 · 392 阅读 · 0 评论