摘要: // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt 阅读全文
posted @ 2019-12-29 23:05 19级电信刘佳佳 阅读(142) 评论(1) 推荐(0)
摘要: // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h>> #include<string.h> #define N 2 // 运行程序输 阅读全文
posted @ 2019-12-18 22:28 19级电信刘佳佳 阅读(104) 评论(1) 推荐(0)
摘要: // 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; // 定义一维 阅读全文
posted @ 2019-12-12 22:48 19级电信刘佳佳 阅读(84) 评论(2) 推荐(0)
摘要: // 在屏幕画布指定坐标(x,y)处打印圆圈(圆圈用大写字符O代替) #include <stdio.h> #include <stdlib.h> #include <windows.h> // 函数声明 void printCircle(int x, int y); int main() { sy 阅读全文
posted @ 2019-11-30 22:16 19级电信刘佳佳 阅读(103) 评论(2) 推荐(0)
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while 阅读全文
posted @ 2019-11-18 22:27 19级电信刘佳佳 阅读(119) 评论(1) 推荐(0)
摘要: 1.输入之前没有地址符号导致不能运行 2. f前面没有L不一致 阅读全文
posted @ 2019-10-31 21:30 19级电信刘佳佳 阅读(89) 评论(1) 推荐(0)
摘要: 1,不要忘记打分号 2,格式 3,双引号 总结:第一次不会交作业,叫别人教我的,表示很不熟,需要多加练习 阅读全文
posted @ 2019-10-19 20:35 19级电信刘佳佳 阅读(82) 评论(0) 推荐(0)