码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
获取系统版本信息和处理器信息
// GetSystemInfo.cpp : Defines the entry point for the console application. //#include "stdafx.h"#include #include #include using namespace std; int main() { SYSTEM...
分类:其他好文   时间:2015-05-07 18:54:18    阅读次数:137
odom_out_and_back.cpp
#include "ros/ros.h" #include "std_msgs/String.h"//geometry_msgs #include "geometry_msgs/Twist.h"//包含elocity space消息 #include #include "math.h" #include #include #include #include using namespace...
分类:其他好文   时间:2015-05-07 12:32:22    阅读次数:134
【 Regular Expression Matching 】cpp
题目:Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:其他好文   时间:2015-05-07 12:10:52    阅读次数:98
调试message send to deallocated instance问题
message sent to deallocated instance在XCode的以前版本中,如果遇到了[代码]c#/cpp/oc代码:1message sent to deallocated instance 0x6d564f0我们可以使用info malloc-history 0x6d564...
分类:其他好文   时间:2015-05-07 11:51:48    阅读次数:188
【练习7.1】cvCreateHist创建直方图、cvCalcHist计算直方图、cvQueryHistValue_1D访问直方图及右左法则
提纲题目要求程序代码结果图片要言妙道题目要求:在0~1之间生成1000个随机值,定义bin的大小为10,并建立一个直方图a、输出每个bin中的数据程序代码: 1 // OpenCVExerciseTesting.cpp : 定义控制台应用程序的入口点。 2 // 3 //D:\\Work\\Work...
分类:其他好文   时间:2015-05-06 22:37:40    阅读次数:1296
cocos2d-x 3.5版 创建新工程
mac下的cocod2d-x开发已经趋于脚本控制了,很多地方都用到python来做自动化管理。打开终端,cd到源码目录。如果之前已经配置好了所有的环境变量,这里就可以用了。cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIRcocos 是一个脚本名字,new是关键字,MyGame是你要建的新工程,com.your...
分类:其他好文   时间:2015-05-06 19:49:09    阅读次数:148
makefile的写法
转载:http://www.cnblogs.com/kulin/archive/2012/07/27/Makefile_Grammer.html 1 #Source file 2 SRC = ThreadQueue.cpp 3 #Object file 4 OBJ = $(SRC:.cpp=.o) ...
分类:其他好文   时间:2015-05-06 19:40:22    阅读次数:116
iOS开发 改变UINavigationController的UINavigationBar的高度和背景图片
1、改变高度 自定义UINavigationBar的新类别: [cpp] view plaincopy //UINavigationBar+BackgoundImage.h   #import       @interface UINavigationBar (BackgoundImage)      @end   在新...
分类:移动开发   时间:2015-05-06 17:46:32    阅读次数:243
list contro控件根据单元格的内容改变显示的颜色
第一首先向控件添加NM_CUSTOMDRAW消息。过程如下: 在头文件中添加: afx_msg void OnCustomdrawMyList(NMHDR *pNMHDR, LRESULT *pResult); 为消息NM_CUSTOMDRAW的响应函数 在.CPP文件中添加 BEGIN_MESSAGE_MAP(CListControlDlg, CDialog) //{{AFX_MSG_...
分类:其他好文   时间:2015-05-06 17:46:24    阅读次数:202
jag2014autumn F Reverse a Road II 网络流
题目链接:点击打开链接 题意:给定一个图包含n个点,m条容量为1的有向边,问只翻转一条边能使s到t的最大流增大到多少?有多少种方法? 思路:先跑一遍最大流,在残余流量里把点分为为两个集合,第一个集合包含所有从起点能到达的点,第二个集合包含所有能到达终点的点,那么答案就是起点在第二个集合终点在第一个集合的边的条数(两个集合都不包含的点忽略)。 cpp代码: #include #includ...
分类:其他好文   时间:2015-05-06 17:39:55    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!