摘要: #include<stdio.h> #include<stdlib.h> #pragma warning(disable:4996) int main() { FILE* fp; int count = 0; fp = fopen("data4.txt", "r"); if (fp == NULL) 阅读全文
posted @ 2022-12-25 20:14 KING518 阅读(8) 评论(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 @ 2022-12-24 21:18 KING518 阅读(4) 评论(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-27 12:00 KING518 阅读(10) 评论(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 @ 2022-11-08 11:36 KING518 阅读(26) 评论(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 阅读全文
posted @ 2022-10-23 21:30 KING518 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf(" o\n"); printf("<H>\n"); printf("I I\n"); return 0; } #includ 阅读全文
posted @ 2022-10-18 22:09 KING518 阅读(22) 评论(0) 推荐(0) 编辑