摘要: #include<stdio.h> #include<stdlib.h> int main(){ FILE *fp; char al; int count=0; fp=fopen("C:\\data4.txt","r"); if(fp==NULL){ printf("fail to open fil 阅读全文
posted @ 2022-12-25 17:46 lx娃哈哈 阅读(4) 评论(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-23 12:35 lx娃哈哈 阅读(9) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<stdlib.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) = 阅读全文
posted @ 2022-11-29 12:52 lx娃哈哈 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 任务1 #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 p 阅读全文
posted @ 2022-11-08 14:10 lx娃哈哈 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 任务2 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 3 int main() { int i, x, j; printf("猜猜2022年11月哪一天会是你的lucky day"); printf("开始咯,你有三次 阅读全文
posted @ 2022-10-24 21:18 lx娃哈哈 阅读(38) 评论(0) 推荐(0) 编辑
摘要: //实验一#include <stdio.h> int main() { printf(" O O\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } //task1_1.c #include <stdio.h> int main() 阅读全文
posted @ 2022-10-16 13:12 lx娃哈哈 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } 阅读全文
posted @ 2022-10-12 09:14 lx娃哈哈 阅读(26) 评论(0) 推荐(1) 编辑