摘要:
實驗任務4 1 #include <stdio.h> 2 3 int main() { 4 int count = 0; 5 int ch; 6 FILE *fp; 7 8 fp = fopen("data4.txt", "r"); 9 if (fp == NULL) { 10 printf("fa
閱讀全文
摘要:
實驗任務4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn號 6 char name[80]; // 書名 7 char author[80]; // 作者 8 double sale
閱讀全文
摘要:
實驗任務1 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, in
閱讀全文
摘要:
實驗任務1 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 // 輸出數(shù)組a占用的內存字節(jié)數(shù) 9 printf("sizeof(a) = %d\
閱讀全文
摘要:
實驗任務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, char
閱讀全文
摘要:
實驗任務1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 7 int main() 8 { 9 int number; 10 int i; 11 12 srand(time(0)); 13
閱讀全文
摘要:
實驗任務1 1_1 1 #include<stdio.h> 2 int main() 3 { 4 printf(" O\n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 printf(" O\n"); 9 printf("<H>\n"); 10 print
閱讀全文