摘要: task4.c #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> int main() { FILE* fp; char ch; int num = 0; fp = fopen("D:\\data4.txt" 阅读全文
posted @ 2022-12-28 17:00 王荣欣 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task3.c #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 do 阅读全文
posted @ 2022-12-27 11:45 王荣欣 阅读(18) 评论(0) 推荐(0) 编辑
摘要: task1_1.c #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 阅读全文
posted @ 2022-11-25 20:11 王荣欣 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); vo 阅读全文
posted @ 2022-11-06 22:13 王荣欣 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Task1.c #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) { 阅读全文
posted @ 2022-10-25 21:22 王荣欣 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Task1.c #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } Task1_1.c #include <stdio.h> int main() { print 阅读全文
posted @ 2022-10-18 20:54 王荣欣 阅读(32) 评论(0) 推荐(0) 编辑