码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
Windows API贪吃蛇游戏
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...
分类:Windows程序   时间:2015-07-02 23:50:16    阅读次数:239
Qt对ini文件的读写
研究了以下Qt下ini文件的读写,不废话,上干货。写入ini文件WriteIni.cpp 1 void WriteIni::writeSettings() 2 { 3 QSettings settings("config.ini", QSettings::IniFormat); // 当前目...
分类:其他好文   时间:2015-07-02 20:49:43    阅读次数:142
vim - 自动补齐
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等类似)
double转为string (int\float等类似)Cpp代码CodehighlightingproducedbyActiproCodeHighlighter(freeware)http://www.CodeHighlighter.com/-->#include#inlcudeintmain(...
分类:其他好文   时间:2015-07-02 15:38:59    阅读次数:128
CvSplit
/* 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
基于google protobuf 的 socket udp 通信
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
opencv 操作本地摄像头实现录像
直接上代码: // demo1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; #include #include #include #include using namespace cv; int ...
分类:其他好文   时间:2015-06-30 23:29:33    阅读次数:170
【C++】关于map的遍历 删除
[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
cpp第一次用set和vector
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
GCC单独编译host/examples/ tx_waveforms.cpp
需要链接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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!