摘要: task4 1 #include<stdio.h> 2 int main() 3 {int i=0;char ch; 4 FILE *fp; 5 6 fp=fopen("c:/aa/data4.txt","r"); 7 if(fp==NULL){ 8 printf("fail to open fil 阅读全文
posted @ 2023-12-18 20:44 mdlmdl 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task1 1 // P286例8.17 2 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 3 // 打印不及格学生信息和所有学生信息程分别调用 4 5 #include <stdio.h> 6 #include <string.h> 7 #define N 3 // 运行程 阅读全文
posted @ 2023-12-17 23:37 mdlmdl 阅读(11) 评论(0) 推荐(0) 编辑
摘要: task1.1 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 *pmi 阅读全文
posted @ 2023-12-03 21:11 mdlmdl 阅读(13) 评论(0) 推荐(0) 编辑
摘要: task1.1 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", si 阅读全文
posted @ 2023-11-20 00:39 mdlmdl 阅读(11) 评论(0) 推荐(0) 编辑
摘要: task1 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,char text[ 阅读全文
posted @ 2023-10-31 16:57 mdlmdl 阅读(9) 评论(0) 推荐(0) 编辑
摘要: task1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main() 10 { 11 int numb 阅读全文
posted @ 2023-10-22 18:27 mdlmdl 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 system("pause"); 9 return 0; 10 阅读全文
posted @ 2023-10-06 21:08 mdlmdl 阅读(139) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示