摘要:
work1 1 // 文件讀寫操作:格式化讀、寫文本文件 2 #define _CRT_SECURE_NO_WARNINGS 1 3 4 5 #include <stdio.h> 6 7 #define N 80 8 #define M 100 9 10 typedef struct { 11 ch
閱讀全文
摘要:
task1 1 // P286例8.17 2 // 對教材示例代碼作了微調,把輸出學生信息單獨編寫成一個函數模塊 3 // 打印不及格學生信息、打印所有學生信息均調用該模塊實現 4 5 #include <stdio.h> 6 #include <string.h> 7 #define N 2 //
閱讀全文
摘要:
task1 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 *pmin,
閱讀全文
摘要:
task1: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = { 1, 9, 8, 4 }; 7 int i; 8 9 // 輸出數組x占用的內存字節(jié)數 10 printf("sizeo
閱讀全文
摘要:
實驗1 1 #include <stdio.h> 2 3 char score_to_grade(int score); // 函數聲明 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf_s("%d", &score) != EO
閱讀全文
摘要:
task1: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); // 以當前系統(tǒng)時間作為隨機種子 for(i = 0
閱讀全文
摘要:
任務1 #include<stdio.h> #include<stdlib.h> #define _CRT_SECURE_NO_WARNINGS int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); system("pause
閱讀全文