码迷,mamicode.com
首页 >  
搜索关键字:using 127.0.0.1 for servername    ( 53996个结果
[c++]this指针理解
#include using namespace std;/** * this 指针理解 */class A{ int i;public: void hello(){ couthello();}由于单独开发基于c++的编译器,c++程序翻译成c程序后在,在使用c语...
分类:编程语言   时间:2014-05-12 16:34:20    阅读次数:283
nefu 640 Number Guessing
题目:大意就是猜数,给定个四位数,然后给出这个数与正确的数之间的比较(#A*B,#代表有#个数字他的值和位置都对了,*代表有*个数的值对了),给出n个上述的4位数,让你确定这个正确的数是多少。 思路:直接暴力。 注意:程序结束是n为负数,而不是-1,为此超时了两次 T T。 代码: #include #include #include using namespace std; str...
分类:其他好文   时间:2014-05-02 21:16:30    阅读次数:314
二分图匹配
HDU  2063  求一个二分图的最大匹配。 完全的裸题。贴代码。 #include #include #include #include #include using namespace std; vector G[1005]; bool check[1005]; int mac[1005]; int n; void add_edge(int from,int to) { G[f...
分类:其他好文   时间:2014-05-02 20:57:04    阅读次数:359
Cocos2d-x3.0 RenderTexture(一) 保存
.h #include "cocos2d.h" #include "cocos-ext.h" #include "ui/CocosGUI.h" #include "cocostudio/CocoStudio.h" USING_NS_CC; USING_NS_CC_EXT; using namespace ui; RenderTexture* _target; Vector _...
分类:其他好文   时间:2014-05-02 20:33:15    阅读次数:370
拷贝构造函数[c++]
拷贝构造函数何时会被调用?1. 对象以值传递的方式传入函数参数2.对象以值传递的方式从函数返回3.对象需要通过另外一个对象进行初始化下面我们来看代码://#include //using namespace std;//template //T:队列的类型,char,int,double,包括自己....
分类:编程语言   时间:2014-05-02 17:33:17    阅读次数:401
characterCustomezition的资源打包代码分析
using System.Collections.Generic;using System.IO;using UnityEditor;using UnityEngine;class CreateAssetbundles{ // This method creates an assetbundl...
分类:其他好文   时间:2014-05-02 14:55:17    阅读次数:346
void f(int(&p)[3]){} 和void f(int(*p)[3]){}的区别
#include using namespace std; void f(int(&p)[3]){          cout     cout } int main(){     int a1[3]={1,2,3};     cout     cout     f(a1); } 编译后输出:...
分类:其他好文   时间:2014-05-02 05:32:02    阅读次数:265
Cocos2d-x3.0 RenderTexture(三)
.h #include "cocos2d.h" #include "cocos-ext.h" #include "ui/CocosGUI.h" #include "cocostudio/CocoStudio.h" USING_NS_CC; USING_NS_CC_EXT; using namespace ui; private: cocos2d::SpriteBatchNode *...
分类:其他好文   时间:2014-05-02 04:59:30    阅读次数:332
非常坑爹
调试了好久,在MFC内居然不能够解析“Mat”总是显示"Mat"未定义,修改include、lib、依赖库,不断地修改:#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "cv.h"还是不能显示,最后想起来是需要:using namespace cv; using names...
分类:其他好文   时间:2014-05-02 04:55:10    阅读次数:271
串的模式匹配算法(KMP)
算法: #include using namespace std; #define MAXSIZE 100 void calNext(const char *T,int *next);//T为模式串,next为预判数组 int kmp_match(const char *S,const char *T);//在主串S中寻找模式串T,如果找到返回其位置,否则返回-1。位置从0开始 void ...
分类:其他好文   时间:2014-05-02 02:25:40    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!