摘要:
task 4 源代码: 1 #include<stdio.h> 2 3 int main() 4 { 5 FILE *fp; 6 fp=fopen("d:\\data4.txt","r"); 7 if(fp==NULL){ 8 printf("fail to open file.\n"); 9 re 阅读全文
摘要:
实验任务1 源代码: 1 #include <stdio.h> 2 #include <string.h> 3 #define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 4 5 typedef struct student { 6 int id; // 学号 7 char 阅读全文
摘要:
实验任务1 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[], in 阅读全文
摘要:
实验任务1 task 1_1.c 源代码: 1 #include <stdio.h> 2 #define N 4 3 4 void test1() 5 { 6 int a[N]={1,9,8,4}; 7 int i; 8 9 printf("sizeof(a)=%d\n",sizeof(a)); 1 阅读全文
摘要:
实验任务1 源代码: 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,c 阅读全文
摘要:
实验任务1 task1.c 源代码: 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 阅读全文
摘要:
实验任务1 task1.c 源代码: 1 //打印一个字符小人 2 3 #include <stdio.h> 4 int main() 5 { 6 printf(" 0\n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 10 11 return 0; 12 } 阅读全文