摘要: A类IP地址A类IP地址:用可变的7位(bit)来标识网络号,可变的24位标识主机号,最前面一位为"0",即A类地址的第一段取值介于1~126之间。A类地址通常为大型网络而提供,全世界总共只有126个A类网络,每个A类网络最多可以连接16777214台主机。B类IP地址B类IP地址:用可变的14位来... 阅读全文
posted @ 2014-08-29 16:04 Arigatou 阅读(440) 评论(0) 推荐(0) 编辑
摘要: P70 5P72 7P74 函数指针P81 指针和句柄P83 this指针 阅读全文
posted @ 2014-08-18 00:48 Arigatou 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 两个指针相减,为两个指针之间间隔这两个指针类型的数目。如:int *p,*q;p-q=(p地址-q地址)/sizeof(int)#include int main(){ int a[9]={1,2,3,4,5,6,7,8,9}; char *p,*q; int *p2,*q2; ... 阅读全文
posted @ 2014-08-18 00:35 Arigatou 阅读(5746) 评论(0) 推荐(0) 编辑
摘要: 参考"http://blog.sina.com.cn/s/blog_63d4849c01014qg3.html"C语言内存分为5部分:堆、栈、全局(静态)区、常量区(只读)和代码区。堆,需要人工申请和释放内存,其他均为系统自动释放。全局(静态)区、常量区:全局可见!#include #include... 阅读全文
posted @ 2014-08-18 00:05 Arigatou 阅读(495) 评论(0) 推荐(0) 编辑
摘要: int在32位计算机中占4个字节,主要是想弄清楚这4个字节的在内存中存放的顺序。 1 #include 2 3 using namespace std; 4 5 typedef struct int_char 6 { 7 int a; 8 unsigned char *b; 9... 阅读全文
posted @ 2014-08-16 19:21 Arigatou 阅读(2306) 评论(0) 推荐(0) 编辑