摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 5, M = 100; int main() { char ch[M]; int n = 0; FILE *fp; fp = fopen("data4.t 阅读全文
posted @ 2023-06-15 11:13 郑世成 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char level[ 阅读全文
posted @ 2023-06-01 10:23 郑世成 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for (i = 0; i < N; ++i) printf("%d", x[i]) 阅读全文
posted @ 2023-05-11 13:03 郑世成 阅读(7) 评论(0) 推荐(0) 编辑
摘要: void input(int x[], int n); void output(int x[], int n); double average(int x[], int n); void bubble_sort(int x[], int n); int main() { int scores[N]; 阅读全文
posted @ 2023-04-20 13:26 郑世成 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); void print 阅读全文
posted @ 2023-04-06 12:52 郑世成 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include <stdlib.h> #include <stdio.h>int _tmain(int argc, _TCHAR* argv[]) { int a1, a2, a3; char c1, c2, c3; double x, y;scanf(" 阅读全文
posted @ 2023-03-23 12:31 郑世成 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0 ; } #include <stdio.h> int main() { printf(" o \n"); print 阅读全文
posted @ 2023-03-08 12:55 郑世成 阅读(4) 评论(0) 推荐(0) 编辑