摘要: #include<stdio.h> #include<stdlib.h> int main() { char a[2][100]={"nuist2022-nuist2023","FIFA World Cup 2022"}; FILE *fp; int i,n=0; char ch; fp=fopen 阅读全文
posted @ 2022-12-27 11:25 real·man 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #define N 3 typedef struct student { int id; // 学号 char name[20]; // 姓名 char subject[20]; // 考试科目 double perf; 阅读全文
posted @ 2022-12-27 11:22 real·man 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define N 4 int main() { int a[N] = {1, 9, 8, 4}; char b[N] = {'1', '9', '8', '4'}; int i; printf("sizeof(int) = %d\n", sizeof(int) 阅读全文
posted @ 2022-11-29 11:10 real·man 阅读(12) 评论(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 @ 2022-11-08 10:40 real·man 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main(){ int number; int i; srand(time(0)); for(i=0;i<N;++i){ number=rand()%500+1 阅读全文
posted @ 2022-10-25 10:20 real·man 阅读(25) 评论(0) 推荐(0) 编辑
摘要: task1#include <stdio.h> int main() { printf(" O O\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } task2#include <stdio.h> #include <math.h> 阅读全文
posted @ 2022-10-18 21:25 real·man 阅读(68) 评论(0) 推荐(0) 编辑