随笔分类 - C++
摘要:prop系统导出的交收数据为dbf文件格式,linux需要能够解析该格式文件, 找到一个开源库shapelib可以实现该功能; 1、下载库源码 http://download.osgeo.org/shapelib/ 选择shapelib-1.4.0.zip这个版本; 2、解压下载的源码,编译, [fm@vm178 dbf_demo]$ ./configure --prefix=/home/fm...
阅读全文
posted @ 2018-10-16 11:26
Mr.R123
摘要:CPP调用webservice解决方案 一、CURL调用webservice 使用curl命令调用接口,该方法目前不可行; 二、gsoap调用webservice 该方法是目前推荐使用的方法,使用步骤为 操作系统LINUX RHCL 7.2 1、下载gsoap源码包:gsoap_2.8.70.zip,是目前能下载的最新版本; 解压 ...
阅读全文
posted @ 2018-08-30 16:50
Mr.R123
摘要:1、头文件 #ifndef _CSV_HELPER_H_ #define _CSV_HELPER_H_ #include #include #include using namespace std; typedef struct CsvRow { ...
阅读全文
posted @ 2018-06-11 10:26
Mr.R123
摘要:1、./configure --prefix=/usr/curl-7.55 --disable-static --enable-threaded-resolver --enable-smtp --enable-pop3 2、make 3、make install 以上安装版本为:curl-7.55.1 #include "skynet.h"#include "skynet_han...
阅读全文
posted @ 2017-10-20 00:01
Mr.R123
摘要:所谓的详解只不过是参考www.cplusplus.com的说明整理了一下,因为没发现别人有详细讲解。 chrono是一个time library, 源于boost,现在已经是C++标准。话说今年似乎又要出新标准了,好期待啊! 要使用chrono库,需要#include,其所有实现均在std::chrono namespace下。注意标准库里面的每个命名空间代表了一个独立的概念。...
阅读全文
posted @ 2017-10-13 10:18
Mr.R123
摘要:function slink(){ SRCFILE =$1 /$2 DESTFILE =$1 /$3 if [!-f $DESTFILE]; then if [-f $SRCFILE]; then ln - s $SRCFILE $DESTFILEelseecho "warning: src not ...
阅读全文
posted @ 2017-10-13 09:33
Mr.R123
摘要://将数字字符串转为千分位格式inline string number_to_currency(string str, bool bDot = true){string newStr = "";int ...
阅读全文
posted @ 2017-10-11 18:39
Mr.R123
摘要:C++项目中,经常会遇到使用重载()操作符的地方,请看下面一个例子:view plain#includeusingnamespacestd;classClastype{public:Clastype(inta){cout<<"HelloClastype!"<<a<<endl;...
阅读全文
posted @ 2017-09-30 21:58
Mr.R123
摘要:1、一般网上会说这是由于定义多个结构体,没有加分号导致,但是发现不是这个原因; 2、头文件顺序不正确会出现这个错误提示,原因未知; 3、
阅读全文
posted @ 2017-09-30 21:54
Mr.R123
摘要:类的定义如下:class pg_stask_bizmsg {public:pg_stask_bizmsg();virtual ~pg_stask_bizmsg();protected://任务初始化virtual void on_init();//...
阅读全文
posted @ 2017-09-30 16:11
Mr.R123

浙公网安备 33010602011771号