上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 133 下一页
摘要: 1、打开官网 https://qgis.org/zh_CN/site/forusers/download.html 直接下载文件 2、下载后是一个exe,双击安装,可自定义安装路径 安装完成再开始里打开软件: 3、设置为中文 按步骤设置 3、新建图层并显示基本界面 4、设置在线瓦片数据源 ①、右键X 阅读全文
posted @ 2021-08-15 16:26 朱小勇 阅读(1630) 评论(0) 推荐(0)
摘要: 一、使用C++11 封装类 // Connect.hpp #ifndef _CONNECT_H #define _CONNECT_H #include <vector> #include <memory> #include <functional> #define emit #define slot 阅读全文
posted @ 2021-08-11 16:58 朱小勇 阅读(733) 评论(0) 推荐(0)
摘要: 1、静态函数 std::string Config::getCurTimeStr() { std::string ret; time_t timep; struct tm *p; time(&timep); p = localtime(&timep); printf("\n", 1900 + p-> 阅读全文
posted @ 2021-07-29 16:37 朱小勇 阅读(503) 评论(0) 推荐(0)
摘要: 经常分不清GNU是啥,今天总结下,其实就是一个工具集合,主要用来编译程序和支持程序运行相关的工具集: 工具说明 gcc GNU C 语言编译器 g++ GNU C++ 语言编译器 gdb 调试器,用于调试可执行程序 ar 生成静态库 .a ,可以编辑和管理静态链接库 make 生成器,可以根据 ma 阅读全文
posted @ 2021-07-28 15:36 朱小勇 阅读(252) 评论(0) 推荐(0)
摘要: 代码: #include <io.h> std::vector<std::string> StoreActionServer::getFolderList(const std::string &path) { std::vector<std::string> folderList; //文件句柄 l 阅读全文
posted @ 2021-07-27 14:37 朱小勇 阅读(629) 评论(0) 推荐(0)
摘要: 内存不够: 1,确认系统已占用内存是否正常,排除数据量过大导致的问题,此时系统内存不足导致 std::bad_alloc 内存剩余: 1,确认接口调用时,调用和背调接口的的参数是否一致,动态库库调用中若不一致,编译链接通过,但执行可能导致 std::bad_alloc 2,确认是否使用vector, 阅读全文
posted @ 2021-07-21 23:15 朱小勇 阅读(603) 评论(0) 推荐(0)
摘要: 代码: static std::string trim(std::string s) { std::string ret = ""; if(s.empty()){ return ret; } std::cout<<s.find("\t")<<1111; for(size_t i=0; i<s.siz 阅读全文
posted @ 2021-07-21 15:16 朱小勇 阅读(549) 评论(0) 推荐(0)
摘要: 1、头文件 #include <unistd.h> 2、使用 sleep(1); //1秒 usleep(100); //微秒 阅读全文
posted @ 2021-07-21 15:11 朱小勇 阅读(537) 评论(0) 推荐(0)
摘要: C: #include <string.h> 提供字符串操作函数 C++: #include <string> 提供一个字符串类,string 阅读全文
posted @ 2021-07-20 12:06 朱小勇 阅读(125) 评论(0) 推荐(0)
摘要: 1、string转char* ①、string.c_str()返回一个以'\0'结尾的字符数组; ②、string.data()仅返回字符串内容,而不含有结束符'\0'。 2、char数组转string char ch[]="hello world!"; string str(ch);或者 stri 阅读全文
posted @ 2021-07-20 11:39 朱小勇 阅读(65) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 133 下一页