- 博客(7)
- 资源 (14)
- 收藏
- 关注
原创 cc 编译头文件
头文件信息:List.h#ifndef _List_h#define _List_h#include #include #endiftypedef struct Node{ struct Node *next; int value;} Node;int ins_Node(Node ** cn,int value);Node * InitNode(int
2012-10-20 00:33:21 2443
原创 数组,指针,数组指针
先看下下面这个例子: Inta[5]; 定义一个数组,其包含了5个int型的数据,我们可以用a[0],a[1]等来访问数组里面的每一个元素。这里的a[0],a[1]等为a的元素,但并非元素的名字。数组的每一个元素都是没有名字的。 Sizeof(a)的值为sizeof(int)*5,32位系统下为20,数组的长度。 Sizeof(a[0])的值为sizeof(int),32位系统下
2012-10-15 23:02:12 773
转载 Delphi 编译指令与说明
{$IFDEF WIN32} 对于Delphi来说﹐左右大括号之间的内容是批注﹐然而 {$ (左括号后紧接着货币符号)对于Compiler(编译器)而言并不是批注﹐而是写给Compiler看的特别指示。 应用时机与场合 Delphi中有许许多多的Compiler Directives(编译器指令)﹐这些编译指令对于我们的程序发展有何影响呢
2012-10-11 09:25:28 5141
转载 指针访问与数组访问的效率分析
很多人都知道指针访问比数组访问效率高, 但很少人明白其中的原理, 这篇文章从汇编级别上分析一下原因.我用一个"reverse"函数来作为例子, 分别用指针和数组的形式来实现这个函数.[cpp] view plaincopy//指针访问 void reverse(char *pStr,int nLen) { char *pStart=pStr;//指向字符
2012-10-09 23:37:15 1149
转载 指针数组与数组指针
我说的很直白,简单易懂,给在迷茫的孩子和自己总结与复习。这是我在华清培训的时候老师讲的一道题,老师讲的我想哭,后来自己想了想下面这个是一个比较经典的例子main(){ int a[5]={1,2,3,4,5}; int *ptr=(int *)(&a+1); printf("%d,%d",*(a+1),*(ptr-1));}输出:2,5
2012-10-09 23:34:18 613
转载 C++虚指针实现及效率
单继承虚函数例子classPoint {public:virtual~Point();virtualPoint& mult( float ) = 0; //... other operations ...floatx() const { return _x; }virtualfloat y() const { return 0
2012-10-09 23:28:24 1649
转载 About Servers and Clients
There are two distinct types of socket network applications: Server and Client.Servers and Clients have different behaviors; therefore, the process of creating them is different. What follows is the
2012-10-08 22:29:30 802
jrockit-jdk1.6.0_181-linux_x86_64
2018-03-17
jrockit-jdk1.6.0_171-windows_x86_64
2018-03-17
jrockit-jdk1.6.0_181-windows
2018-03-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人