isZcc

2023年6月15日

实验七

摘要: task 4.c #include<stdio.h> int main(){ int i,k=0; char ch; FILE*fp; fp = fopen("data4.txt","r");; if(fp == NULL){ printf("fail to open file\n"); retur 阅读全文

posted @ 2023-06-15 09:36 走草草 阅读(4) 评论(0) 推荐(0) 编辑

2023年6月1日

实验六

摘要: 1 // P286例8.17 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些 阅读全文

posted @ 2023-06-01 10:41 走草草 阅读(8) 评论(0) 推荐(0) 编辑

2023年5月11日

实验5

摘要: 实验1 源代码 #include <stdio.h>#define N 4 int main(){ int x[N]={1,9,8,4}; int i; int *p; for(i=0;i<N;++i) printf("%d",x[i]); printf("\n"); return 0; } 实验截 阅读全文

posted @ 2023-05-11 13:08 走草草 阅读(9) 评论(0) 推荐(0) 编辑

2023年4月20日

4

摘要: #include<stdio.h>#define N 4int main(){ int a[N] = {2,0,2,3}; char b[N] ={'2','0','2','3'}; int i; printf("sizeof(int) = %d\n",sizeof(int)); printf("s 阅读全文

posted @ 2023-04-20 14:21 走草草 阅读(7) 评论(0) 推荐(0) 编辑

2023年4月1日

3

摘要: 实验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 print_ 阅读全文

posted @ 2023-04-01 16:27 走草草 阅读(19) 评论(0) 推荐(0) 编辑

2023年3月19日

实验2

摘要: 写的好怕人 阅读全文

posted @ 2023-03-19 10:53 走草草 阅读(22) 评论(0) 推荐(0) 编辑

2023年3月5日

实验任务1

摘要: task1实验截图 实验代码 //打印一个小人 #include<stdio.h> int main() { printf("o\n"); printf("<H>\n"); printf("I I\n"); return 0; } task2实验代码//1+2+3+...+n(设n的取值在100以内 阅读全文

posted @ 2023-03-05 00:26 走草草 阅读(13) 评论(0) 推荐(0) 编辑

导航