摘要: PART1 1. // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen(" 阅读全文
posted @ 2019-12-25 17:42 九分湖水 阅读(87) 评论(2) 推荐(0)
摘要: // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h>> #include<string.h> #define N 30 // 运行程序 阅读全文
posted @ 2019-12-18 15:42 九分湖水 阅读(109) 评论(3) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); int main() { int a[N]={2,7,19,45,66}; int i,index, k 阅读全文
posted @ 2019-12-12 14:48 九分湖水 阅读(92) 评论(3) 推荐(0)
摘要: PART 1 #include <stdio.h> #include <stdlib.h> #include <windows.h> void printCircle(int x, int y); int main() { system("color 02"); printCircle(5, 10) 阅读全文
posted @ 2019-11-27 14:43 九分湖水 阅读(94) 评论(3) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; min = nu 阅读全文
posted @ 2019-11-18 11:14 九分湖水 阅读(101) 评论(3) 推荐(0)
摘要: 二、实验结论 1、“;”号容易多加或者漏掉; 2、else if和if的配对问题; 3、花括号问题,容易多一个少一个。 阅读全文
posted @ 2019-10-31 16:20 九分湖水 阅读(144) 评论(3) 推荐(0)