09 2013 档案

摘要:#include using namespace std; int main(void){ struct test2 { char a:2; char b:2; int c:2; char d:2; }t2; memset(&t2, 0, sizeof(t2)); t2.a = 3; t2.b = 2; t2.c = 3; t2.d = 3; char *p = (char*)&t2; ... 阅读全文
posted @ 2013-09-09 16:23 helloweworld 阅读(283) 评论(0) 推荐(0)
摘要:#include#include#includeusingnamespacestd;#defineWIDTH40intBSS_global_uninit_a;intBSS_global_uninit_b;intstaticBSS_global_uninit_static_a;intstaticBSS_global_uninit_static_b;intDS_global_init_a=1;intD... 阅读全文
posted @ 2013-09-07 21:29 helloweworld 阅读(188) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-09-07 21:28 helloweworld 阅读(158) 评论(0) 推荐(0)
摘要:1.进程模型 正在运行的程序实例。 2.创建进程 3.进程的终止 正常、出错、被kill。 4.进程的层次结构 父子进程、进程组。 5.进程的状态 6进程的实现 操作系统维护一张进程表,每个进程占一个进程表项(PCB)。 阅读全文
posted @ 2013-09-07 12:01 helloweworld 阅读(157) 评论(0) 推荐(0)
摘要:int main(){ string str[] = {"12345", "12", "12"}; cout << sizeof(string) << endl; cout << sizeof(str) << endl; return 0;} 412 阅读全文
posted @ 2013-09-05 11:24 helloweworld 阅读(216) 评论(0) 推荐(0)