摘要: task1.1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for(i=0; i<N; ++i) printf("%d", x[ 阅读全文
posted @ 2022-06-13 20:18 Evanseco 阅读(14) 评论(2) 推荐(0) 编辑
摘要: 1.实验任务1:文本文件数据格式化读写 task1_1.c #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; //书名 char author[M]; //作者 } Book; int main() { 阅读全文
posted @ 2022-06-06 18:48 Evanseco 阅读(8) 评论(0) 推荐(0) 编辑
摘要: task 1 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void printText(int line, int col, char text[]); void 阅读全文
posted @ 2022-04-25 14:06 Evanseco 阅读(16) 评论(0) 推荐(0) 编辑
摘要: task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade, number; int i; srand(time(0)); for (i = 0; i < N; i 阅读全文
posted @ 2022-04-18 14:02 Evanseco 阅读(26) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int answer; char words[5000]; printf("网课学习让一些人欢喜一些人忧.\n"); printf("1. 作为喜欢自学且自律的人,觉得这样很好. 有网络,自主学习,很ok.\n"); printf("2 阅读全文
posted @ 2022-03-26 19:56 Evanseco 阅读(58) 评论(3) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { char ans1, ans2; printf("第3章认真学完一遍了没? (输入y或Y表示认真学完一遍了,输入n或N表示没有) :"); ans1 = getchar(); // 从键盘输入一个字符,赋值给ans1 getchar() 阅读全文
posted @ 2022-03-26 19:55 Evanseco 阅读(43) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<math.h> int main() { int age1, age2; char gender1, gender2; scanf("%d%c%d%c", &age1, &gender1, &age2, &gender2); printf("a 阅读全文
posted @ 2022-03-26 19:43 Evanseco 阅读(288) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { double x,y; char c1,c2,c3; int a1,a2,a3; scanf("%d%d%d",&a1,&a2,&a3);//改 printf("%d,%d,%d\n",a1,a2,a3); getchar();//改 s 阅读全文
posted @ 2022-03-26 19:41 Evanseco 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include<math.h> int main() { double x, f; while(scanf("%lf", &x) != EOF) { f = x/5*9+32; printf("%.摄氏度x=%.2f时, 阅读全文
posted @ 2022-03-26 19:34 Evanseco 阅读(108) 评论(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-03-26 19:30 Evanseco 阅读(263) 评论(0) 推荐(0) 编辑