linux

os

 

2009年2月16日

未知个数的cin

摘要: #include #include using namespace std; main() {string word; while(cin>>word) cout>a; } 也可以用word【76】数组来进行 阅读全文

posted @ 2009-02-16 16:23 zhanghui 阅读(149) 评论(0) 推荐(0)

cin and cout

摘要: #include using namespace std; main() { int a=1;//不赋值,会是一些乱码 float b=2; double c=3; cout>a>>b>>c; } //the different of\n and endl is that endl refrese buffer 阅读全文

posted @ 2009-02-16 15:52 zhanghui 阅读(142) 评论(0) 推荐(0)

2008年11月1日

linux 虚拟内存 笔记

摘要: linux 多用户多任务的操作系统 类unix os。 实存储模式 作业运行之前装入 ,运行结束后退出 虚存储模式 逻辑上对物理空间进行扩充,分为用户地址空间和实际的地址空间 ,然后通过地址映射进行转换 大小:1-3g 用户空间 3-4g 内核空间 动态重地位 1 动 程序执行期间 2 who 硬件地址机构 R mmu gdtr l... 阅读全文

posted @ 2008-11-01 01:04 zhanghui 阅读(152) 评论(0) 推荐(0)

导航