上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 45 下一页
摘要: 1.复习题 1.什么是操作系统 操作系统是运行计算机的总控制程序。操作系统的主要功能是高效地利用硬件。 2.什么是内核?列举内核执行的任务 内核是系统是换微信,一直运行并提供基本的服务。 内核执行的基本任务: 内存管理(虚拟内存管理,包括分页) 进程管理(进程创建、终止,调度) 进程间通信(本地、网 阅读全文
posted @ 2021-10-22 10:52 就是想学习 阅读(76) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <assert.h> #define MAX_N 10 int in_car_num = 0; struct cars{ int id; int in_time; }; void come_in_car(int c_id, int c_time 阅读全文
posted @ 2021-10-09 20:15 就是想学习 阅读(56) 评论(0) 推荐(0)
摘要: 第一题 #include <stdio.h> int main(void){ printf("hello, world"); return 0; } 第二题 #include <stdio.h> int main(void){ printf("hello, world\c12"); return 0 阅读全文
posted @ 2021-10-09 20:14 就是想学习 阅读(58) 评论(0) 推荐(0)
摘要: 自动寄存柜 #include <stdio.h> #include <time.h> #include <stdlib.h> struct boxs{ int id; int passwd; int is_used; }; void init_boxs(struct boxs *, int); in 阅读全文
posted @ 2021-10-07 21:13 就是想学习 阅读(56) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> int CE(char *c, char *e){ if (strcmp(c, "你好") == 0) { strcpy(e, "Hello\n"); return 1; } strcmp(e, "Sorry\n"); r 阅读全文
posted @ 2021-10-06 14:51 就是想学习 阅读(311) 评论(0) 推荐(0)
摘要: 代码笔记,仅供自己学习使用。 下面是通过调用调用dirent的系统库实现,查看目录下内容的模块 #include "apue.h" #include <dirent.h> int main(int argc, char *argv[]){ DIR *dp; struct dirent *dirp; 阅读全文
posted @ 2021-10-01 22:06 就是想学习 阅读(61) 评论(0) 推荐(0)
摘要: 自动售货机 #include <stdio.h> /* 通过商品索引 返回价格 */ int goods_price(int index){ switch (index) { case 1:case 2:case 3: return 1; break; case 4:case 5: return 2 阅读全文
posted @ 2021-09-30 14:03 就是想学习 阅读(39) 评论(0) 推荐(0)
摘要: 第六题 输出文件中的注释:将C语言源程序(hello.c)文件中的所有注释去掉后存入另一个文件(new_hello.c)。 #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #define MA 阅读全文
posted @ 2021-09-29 15:18 就是想学习 阅读(82) 评论(0) 推荐(0)
摘要: 第五题 输出含for的行:将文本文件test.txt中所有包含字符串"for"的行输出. #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #define MAXN 5000 int main( 阅读全文
posted @ 2021-09-29 14:36 就是想学习 阅读(118) 评论(0) 推荐(0)
摘要: 第四题 将文件中的数据求和并写入文本文件尾:文件Int_Data.dat中存放了若干整数,将文件中所有数据相加,并把累加和写入该文件的最后。 #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(void){ int n 阅读全文
posted @ 2021-09-29 14:17 就是想学习 阅读(267) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 45 下一页