伪码实现
surpass1026
朴实
展开
-
伪码之美
To express the coding framework. algorithm deviation pre nothing post average and numbers with their deviation printed 1 i = 0 2 loop (not end of file) 1 read number to array[i]转载 2012-04-18 17:55:29 · 376 阅读 · 0 评论 -
analysis code(value passing, pointer(address) passing)
1. none change 1.1) int a = 9; int add1(int a,int b) { a = a + 1; } push ebp mov ebp,esp mov eax,dword ptr ss:[ebp+8] add eax,1 mov dword prt ss:[ebp+8], ea原创 2012-06-02 12:52:12 · 369 阅读 · 0 评论 -
parent point for child class point
父类指针赋值给子类指针 从对象和指针的区别想想: 对象构建在内存中分配对象所需要的大小,父类对象和子类对象成员不同,内存布局肯定不同。 指针是指向对象的内存地址,不管是什么类型,都是一个地址值,4位 ,而对于指向类的对象的指针,一般指向的是起始地址。 子类是在父类的基础上加上自己的成员,所以起始地址是一样的。子类指针指向的和父类指针指向的是相同的。 他们间的转换,加于不加,也只是编转载 2012-05-22 00:21:08 · 419 阅读 · 0 评论 -
数据结构学习
HI http://my.oschina.net/u/247728/blog/70067 http://my.oschina.net/u/247728/blog/76200 数据结构代码学习!转载 2013-01-07 01:09:09 · 242 阅读 · 0 评论