2022年12月26日

摘要: 任务4 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { char ch; int count = 0; FILE* fp; fp = fopen("D:\\data4.txt", "r 阅读全文
posted @ 2022-12-26 20:41 好厚的雪 阅读(14) 评论(0) 推荐(0) 编辑
 
摘要: 任务3 #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char le 阅读全文
posted @ 2022-12-26 19:31 好厚的雪 阅读(12) 评论(0) 推荐(0) 编辑

2022年11月30日

摘要: #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-30 00:29 好厚的雪 阅读(4) 评论(0) 推荐(0) 编辑

2022年11月8日

摘要: Task1 #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 阅读全文
posted @ 2022-11-08 23:33 好厚的雪 阅读(8) 评论(0) 推荐(0) 编辑

2022年10月19日

摘要: Task1 #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-19 23:06 好厚的雪 阅读(17) 评论(0) 推荐(0) 编辑

2022年10月18日

摘要: task1 #include <stdio.h> int main() { printf(" O O\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } #include <stdio.h> int main() { printf(" 阅读全文
posted @ 2022-10-18 19:56 好厚的雪 阅读(14) 评论(0) 推荐(0) 编辑
 
摘要: #include <stdio.h> int main() { printf(" O O\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } 阅读全文
posted @ 2022-10-18 12:23 好厚的雪 阅读(11) 评论(0) 推荐(0) 编辑
 
摘要: #include<stdio.h> int main() { int answer; char words[5000]; printf("网课学习让一些人欢喜一些人忧.\n"); printf("1.作为喜欢自学且自律的人,觉得这样很好。有网络,自主学习,很OK。\n"); printf("2.不喜 阅读全文
posted @ 2022-10-18 12:16 好厚的雪 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: #include<stdio.h> int main() { char ans1, ans2; printf("每次课前认真预习,课后认真复习了没?(输入y或Y表示有,输入n或N表示没有):"); ans1 = getchar(); getchar(); printf("手动敲代码实践了没?(输入y 阅读全文
posted @ 2022-10-18 11:53 好厚的雪 阅读(15) 评论(0) 推荐(0) 编辑
 
摘要: #pragma warning(disable:4996) #include<stdio.h> int main() { int age1, age2; char gender1, gender2; scanf("%d%c%d%c", &age1, &gender1, &age2, &gender2 阅读全文
posted @ 2022-10-18 11:32 好厚的雪 阅读(2) 评论(0) 推荐(0) 编辑