摘要: task 4 源代码 #include <stdio.h> #include <stdlib.h> int main(void){ FILE *fp; char ch; int letter=0; if((fp=fopen("data4.txt","r"))==NULL) { printf("Fil 阅读全文
posted @ 2023-06-15 12:54 陈奕函 阅读(14) 评论(0) 推荐(0)
摘要: task 1 源代码 // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以 阅读全文
posted @ 2023-05-27 21:12 陈奕函 阅读(17) 评论(0) 推荐(0)
摘要: task 1.1 源代码 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for (i = 0; i < N; ++i) print 阅读全文
posted @ 2023-05-10 20:43 陈奕函 阅读(51) 评论(0) 推荐(0)
摘要: task 1 源代码 #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = %d\n", 阅读全文
posted @ 2023-04-19 21:49 陈奕函 阅读(21) 评论(0) 推荐(0)
摘要: 实验一 源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #define N 80 void print_text(int line, int col, char text[]); // 阅读全文
posted @ 2023-04-05 22:07 陈奕函 阅读(18) 评论(0) 推荐(0)
摘要: 实验1源代码#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 702 int main() { int number; int i; srand(time(0) 阅读全文
posted @ 2023-03-23 08:14 陈奕函 阅读(31) 评论(0) 推荐(0)
摘要: 实验1:源代码#include<stdio.h> int main () { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 运行 实验1.2:源代码#include<stdio.h> int main (){ print 阅读全文
posted @ 2023-03-04 13:24 陈奕函 阅读(110) 评论(0) 推荐(0)