摘要: #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-14 14:37 mokivy 阅读(7) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #define N 100 typedef struct { char num[10]; int s1, s2; double sum; char level[10]; } STU; int fun(STU a[], in 阅读全文
posted @ 2023-05-31 23:01 mokivy 阅读(17) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for (i = 0; i < N; ++i) printf("%d", x[i]); printf("\n"); for (p = 阅读全文
posted @ 2023-05-10 23:04 mokivy 阅读(11) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("sizeof(int) = %d\n", sizeof(int) 阅读全文
posted @ 2023-04-19 17:41 mokivy 阅读(21) 评论(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_space 阅读全文
posted @ 2023-04-05 19:29 mokivy 阅读(26) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time(0)); for 阅读全文
posted @ 2023-03-23 08:45 mokivy 阅读(16) 评论(0) 推荐(0)
摘要: //打印一个字符小人 #include <stdio.h> int main() { printf(" 0 0 \n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } //打印一个字符小人 #include <stdio.h> int 阅读全文
posted @ 2023-03-09 14:13 mokivy 阅读(27) 评论(0) 推荐(0)