#pragma once#include "cocos2d.h"USING_NS_CC;class Parabola:public ActionInterval{public: static Parabola* create(float duration,const Point& startP...
分类:
其他好文 时间:
2014-12-16 13:23:08
阅读次数:
148
霍夫圆变换: 1 #include 2 #include 3 #include 4 #include 5 6 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) 7 8 using n...
分类:
其他好文 时间:
2014-12-16 13:14:13
阅读次数:
154
#pragma once#include "cocos2d.h"USING_NS_CC;class Parabola:public ActionInterval{public: static Parabola* create(const CCPoint& startPosition, cons...
分类:
其他好文 时间:
2014-12-16 00:50:05
阅读次数:
189
#pragma once#include "cocos2d.h"USING_NS_CC;typedef struct _EclipseConfig { //中心点坐标 CCPoint centerPosition; //椭圆a长,三角斜边 float aLen...
分类:
其他好文 时间:
2014-12-15 16:57:14
阅读次数:
123
主要是警告信息,在非ARC项目中没有这个警告。如果是在某一处修改只需要加入下列代码:
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self.ticketTarget performSelector: self.ticketAction w...
分类:
移动开发 时间:
2014-12-15 15:31:53
阅读次数:
149
1.S.O.答案第一名#pragma commentis a compiler directive which indicates Visual C++ to leave a comment in the generated object file. The comment can then be ...
分类:
其他好文 时间:
2014-12-15 13:41:14
阅读次数:
144
// MapClientDlg.h : header file
// #pragma once
#include "OpenGLControl.h"
#include "afxwin.h"
#include "CSocket.h"
// CMapClientDlg dialog
class CMap...
分类:
其他好文 时间:
2014-12-15 13:38:34
阅读次数:
116
Canny边缘检测先不说函数作用,来代码: 1 #include 2 #include 3 #include 4 5 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) 6 7 usin...
分类:
其他好文 时间:
2014-12-15 00:00:56
阅读次数:
307
如果在基类中虚函数的访问权限是一种情况,那么派生类在继承基类的时候,派生类可以重新定义基类虚函数的访问权限,经过
实例验证是正确的。
从这里也说明了函数的覆盖或者说重定义跟前面的访问权限修饰没多大关系
//Base.h
#pragma once
#include
using namespace std;
class Base
{
public:
Base(void){...
分类:
编程语言 时间:
2014-12-14 17:19:12
阅读次数:
234
Complex.h 1 #pragma once 2 #include 3 4 using namespace std; 5 //表示一个复数 6 class Complex 7 { 8 private: 9 double x, y;10 public:11 Complex();...
分类:
编程语言 时间:
2014-12-12 23:28:32
阅读次数:
275