码迷,mamicode.com
首页 >  
搜索关键字:public void __cdecl    ( 122950个结果
学习笔记---C++析构函数心得
1.动态分配的对象的析构函数 1 class man{ 2 public: 3 man(){ 4 cout<<"man begin"<<endl; 5 }; 6 ~man(){ 7 cout<<"man end"<<endl; 8 } 9 ...
分类:编程语言   时间:2014-05-08 09:20:20    阅读次数:321
OpenGL学习笔记1 —— 画点
#include // windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include //这两个头文件在OpenGL程序中几乎必加。//>>>>>>>>>>>>>>>>>>> 初始化 void myInit(void) { g...
分类:其他好文   时间:2014-05-08 09:15:02    阅读次数:291
黑马程序员 成员变量的作用域,property,id,构造方法,点语法
#import @interface Person : NSObject{ /* 成员变量作用域有四种: 1.@public:能在程序中任何地方直接访问成员变量 2.@protect:能在当前类和子类中直接访问成员变量(默认情况下) 3.@provate:只能在当前类中直接访问成员变量(@prope...
分类:其他好文   时间:2014-05-08 09:14:29    阅读次数:500
I/O的一些笔记。
I / O流(stream)是供数据传输的通道字节流(通用的)inputStream(父类) FileInputStreamoutputStream(父类) FileOutputStream操作流的步骤a) 产生字节流对象b) 调用读写方法c) 关闭流2. public void copyIm...
分类:其他好文   时间:2014-05-08 09:11:37    阅读次数:295
Leetcode: Roman to Integer
一次通过: 1 public class Solution { 2 public int romanToInt(String s) { 3 int sum = 0; 4 int[] num = new int[s.length()]; 5 if...
分类:其他好文   时间:2014-05-08 08:24:26    阅读次数:233
十一周 项目2 职员有薪水了 扩展
#include #include using namespace std; class CPerson { protected: char *m_szName; char *m_szId; int m_nSex;//0:women,1:man int m_nAge; public: CPerson(char *name,char *id,int sex,int age); voi...
分类:其他好文   时间:2014-05-08 08:15:08    阅读次数:250
Thread create 创建进程
1 #include "windows.h" 2 #include "iostream" 3 #include "stdio.h" 4 5 void StartClone(int nCloneID){ 6 TCHAR szFilename[MAX_PATH]; 7 GetModu...
分类:其他好文   时间:2014-05-08 08:00:45    阅读次数:441
学习笔记---C++伪函数(函数对象)
C++里面的伪函数(函数对象)其实就是一个类重载了()运算符,这样类的对象在使用()操作符时,看起来就像一个函数调用一样,这就叫做伪函数。class Hello{ public: void operator()() //第一个()表示操作符,第二个表示函数参数列表 ...
分类:编程语言   时间:2014-05-08 06:35:33    阅读次数:280
冒泡的实现即优化
冒泡排序: 设数组长为N。以升序为例。1 比较相邻的2个前后的数据,如果前面数据大于后面的数据,则2个数据交换2 这样对数组的第0个数据到第N-1个数据进行遍历,则最大的数据会沉到数组的第N-1个位置。3 N = N-1,如果N != 0 就执行第二步。1 void Bubble_Sort( in....
分类:其他好文   时间:2014-05-08 05:49:27    阅读次数:350
Leetcode: String to Integer
抠细节的题目,很多次过,特别是 Integer.MIN_VALUE 与 Integer.MAX_VALUE的绝对值并不一样大 1 public class Solution { 2 public int atoi(String str) { 3 int result=0; 4...
分类:其他好文   时间:2014-05-08 05:44:17    阅读次数:343
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!