摘要:
任务四 1 #include <stdio.h> 2 3 int main() 4 { 5 int line_count=1,char_count=0; 6 7 FILE *fp=fopen("data4.txt","r"); 8 9 while(!feof(fp)) 10 { 11 char ch 阅读全文
摘要:
task4: 1 1 #include <stdio.h> 2 2 #define N 10 3 3 4 4 typedef struct { 5 5 char isbn[20]; // isbn号 6 6 char name[80]; // 书名 7 7 char author[80]; // 作 阅读全文
摘要:
任务一 源代码一: 1 int main() { 2 int a[N]; 3 int min, max; 4 5 printf("录入%d个数据:\n", N); 6 input(a, N); 7 8 printf("数据是: \n"); 9 output(a, N); 10 11 printf(" 阅读全文
摘要:
任务一 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < N 阅读全文
摘要:
任务一: 1 #include <stdio.h> 2 char score_to_grade(int score); // 函数声明 3 int main() { 4 int score; 5 char grade; 6 while(scanf("%d", &score) != EOF) { 7 阅读全文