上一页 1 ··· 6 7 8 9 10
摘要: gcc编译C文件一共四步,预处理(Preprocess),编译(Compilation),汇编(Assembly)和链接(Linking) 1. 预处理(Preprocess) 预处理是预处理中会展开以#起始的行,包括#if、#ifdef、#if ndef、 #else 、 #elif 、 # en 阅读全文
posted @ 2019-01-10 17:02 学之初 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 第一步:使用apt安装vim 第二步:行号及其tab建设置 添加如下文字 set nu //代码显示行号syntax on //关键词高亮显示set cindent //c 语法自动缩进set autoindent //新行自动缩进set shiftwidth=4 //缩进宽度 4set tabst 阅读全文
posted @ 2019-01-10 16:03 学之初 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 第一步: 第二步: 第三步: 第四步: 完成! 阅读全文
posted @ 2019-01-10 15:58 学之初 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: /* 3、编写一个程序,实现如下功能: (1)将5个学生的信息(包括学号、姓名、成绩三项信息)写入到file1中。 (2)从file1中读出5个学生的信息,按成绩自高到低排序,排序后的结果写入到文件file2中。 */ #include #include #include #define N 5 typedef struct student { int num; char... 阅读全文
posted @ 2019-01-01 16:44 学之初 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 25 个人围成一个圈,从第1个人开始顺序报号,凡报号为3和3的倍数者退出圈子,找出最后留在圈子中的人原来的序号。 要求:用链表实现。报到3或3的倍数的结点删除; 提示:(1)需要将链表首尾相接形成环形; (2)删除时注意头、尾结点的特殊处理; (3)注意循环结束的条件; 阅读全文
posted @ 2019-01-01 11:34 学之初 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 typedef struct student 5 { 6 int num; 7 float socre; 8 struct student *next; 9 }Student; 10 Student *creatlist(void) 11 { 12 Student *he... 阅读全文
posted @ 2018-12-30 16:48 学之初 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 typedef struct student 5 { 6 int num; 7 float socre; 8 struct student *next; 9 }Student; 10 11 Student *creatlist(void) //创建空链表,头节点 12 { 13... 阅读全文
posted @ 2018-12-30 16:45 学之初 阅读(695) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10