1 // wanwan.cpp : 定义应用程序的入口点。 2 // 3 4 5 #include 6 7 #include 8 #define LEFT VK_LEFT 9 #define RIGHT VK_RIGHT 10 #define DOWN VK_DOWN 1...
研究了以下Qt下ini文件的读写,不废话,上干货。写入ini文件WriteIni.cpp 1 void WriteIni::writeSettings() 2 { 3 QSettings settings("config.ini", QSettings::IniFormat); // 当前目...
分类:
其他好文 时间:
2015-07-02 20:49:43
阅读次数:
142
OmniComplete是基于ctags的,所以要先安装ctags到http://www.vim.org/scripts/script.php?script_id=2358下载cpp_src.tar.bz2,解压,进入目录,运行下面这条命令ctags -R --sort=1 --c++-kinds=...
分类:
系统相关 时间:
2015-07-02 15:40:04
阅读次数:
187
double转为string (int\float等类似)Cpp代码CodehighlightingproducedbyActiproCodeHighlighter(freeware)http://www.CodeHighlighter.com/-->#include#inlcudeintmain(...
分类:
其他好文 时间:
2015-07-02 15:38:59
阅读次数:
128
/* possible split in the tree */
typedef struct CvSplit
{
CvTreeCascadeNode* parent;
CvTreeCascadeNode* single_cluster;
CvTreeCascadeNode* multiple_clusters;
int num_clusters;
floa...
分类:
其他好文 时间:
2015-07-02 12:24:32
阅读次数:
307
SocketClient.cpp#include "SocketClient.h"#include "ClientInfoSave.h"#include "serverMsg.pb.h"using namespace Message;string SocketClient::m_strHeatMsg...
分类:
其他好文 时间:
2015-07-02 07:38:24
阅读次数:
481
直接上代码: // demo1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; #include #include #include #include using namespace cv; int ...
分类:
其他好文 时间:
2015-06-30 23:29:33
阅读次数:
170
[cpp]view plaincopyintmain(intargc,char*argv[]){mapmapData;mapData["a"]="aaa";mapData["b"]="bbb";mapData["c"]="ccc";for(map::iteratori=mapData.begin()...
分类:
编程语言 时间:
2015-06-30 21:43:19
阅读次数:
136
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 #define rep(i,m,n)for(int i=m;i x;14 vector ans;15 int t,n,a;16 int main()17 {.....
分类:
其他好文 时间:
2015-06-30 19:57:15
阅读次数:
90
需要链接uhd库和boost_program_options库以及boost_thread库:
g++ tx_waveforms.cpp -o a -luhd -lboost_program_options -lboost_thread...
分类:
其他好文 时间:
2015-06-30 18:28:58
阅读次数:
107