摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { char a; char c[2][100] = {"nuist2022 - nuist2023", "FIFA World Cup 2022"}; FILE* fp; in 阅读全文
posted @ 2022-12-27 16:45 林炙 阅读(21) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum 阅读全文
posted @ 2022-12-25 21:17 林炙 阅读(29) 评论(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( 阅读全文
posted @ 2022-11-29 22:10 林炙 阅读(18) 评论(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_spa 阅读全文
posted @ 2022-11-08 12:58 林炙 阅读(14) 评论(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 = r 阅读全文
posted @ 2022-10-25 19:08 林炙 阅读(28) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" o\n"); printf("<H>\n"); printf("I I"); return 阅读全文
posted @ 2022-10-16 21:02 林炙 阅读(114) 评论(0) 推荐(0)