![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++
文章平均质量分 54
summer夏123
十年裸眼3d,生死两茫茫。
展开
-
c++ main函数基本操作(3)导入opencv库 导入boost库
1 导入opencv库: include directories D:\opencv3.47\include D:\opencv3.47\include\opencv2 library directories D:\opencv3.47\x64\vc14\lib Linker/input opencv_world347d.lib #include <opencv2\opencv.hpp> using namespace cv; 2 导入boost库:...原创 2021-04-29 10:47:45 · 409 阅读 · 0 评论 -
c++ main函数基本操作(2)-- 自定义配置文件读取config.ini
/* 1 c++ 配置文件读取 */ #pragma comment(lib,"ws2_32.lib") #include <cstdio> #include <iostream> #include <string> #include <stdio.h> #include <windows.h> #include "Shlwapi.h" #pragma comment(lib,"shlwapi.lib") using namespace std;.原创 2021-04-14 22:04:57 · 440 阅读 · 0 评论 -
c++ main函数基本操作(1)-- 解析参数argv、string转double、double 转 string、cout 示例/printf 示例、暂停控制台
/* 1 解析参数,argc表示参数数量,argv表示参数内容 //cmd命令行:c:/Users/lenonvo/>./main.exe -s 3.24567 -p 7.4566 2 string 转 double 3 cout 示例/printf 示例 4 double 转 string 5 暂停控制台,不退出。 */ #include <iostream> #include <string> #include <stdio.h> #incl...原创 2021-04-14 13:06:24 · 1410 阅读 · 0 评论 -
函数 -- 整数转换为字符串
string int2str(int num) { if (num == 0) return " 0 "; string str = ""; int num_ = num > 0 ? num : -1 * num; while (num_) { str = (char) (num_ % 10 + 48) + str;转载 2009-05-06 10:09:00 · 767 阅读 · 0 评论 -
c++ boost 文件读取写入 逗号隔开的字符串
boost 简单参数配置文件的读取与写入,以逗号隔开的字符串形式使用翻译 2017-04-12 13:28:36 · 4781 阅读 · 0 评论