摘要: task4.c 1 #include<stdio.h> 2 3 int main(){ 4 FILE *fp; 5 6 int k = 0; 7 char ch; 8 9 fp = fopen("data4.txt","r"); 10 11 if(fp == NULL) { 12 printf("f 阅读全文
posted @ 2023-12-20 20:15 FrederickJACK 阅读(9) 评论(0) 推荐(0)
摘要: task1.c // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include<stdlib.h> #include <string.h> #define N 3 阅读全文
posted @ 2023-12-17 23:08 FrederickJACK 阅读(10) 评论(0) 推荐(0)
摘要: task1_1.c 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *p 阅读全文
posted @ 2023-11-29 20:58 FrederickJACK 阅读(10) 评论(0) 推荐(0)
摘要: task1-1.c 1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 8 // 输出数组a占用的内存字节数 9 printf("sizeof(a) = %d\n", 阅读全文
posted @ 2023-11-15 20:52 FrederickJACK 阅读(26) 评论(0) 推荐(0)
摘要: test1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 7 void print_text(int line, int col, ch 阅读全文
posted @ 2023-10-31 21:06 FrederickJACK 阅读(17) 评论(0) 推荐(0)
摘要: task1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 374 6 #define N2 465 7 int main() 8 { 9 int number; 阅读全文
posted @ 2023-10-17 12:29 FrederickJACK 阅读(36) 评论(0) 推荐(0)
摘要: 实验一 task1-1.c 1 #include<stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" O \n"); 8 printf("<H>\n"); 9 pr 阅读全文
posted @ 2023-10-06 12:06 FrederickJACK 阅读(15) 评论(0) 推荐(0)