会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
u3004105
博客园
首页
新随笔
联系
订阅
管理
2022年12月25日
实验六 文件应用编程
摘要: task4 #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 op
阅读全文
posted @ 2022-12-25 14:01 梁紫娟
阅读(37)
评论(0)
推荐(0)
2022年12月21日
实验五 结构体应用编程
摘要: 实验任务三 task3.c #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平
阅读全文
posted @ 2022-12-21 12:52 梁紫娟
阅读(56)
评论(0)
推荐(0)
2022年11月23日
实验4 数组应用编程
摘要: 实验任务一 task1_1.c #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; prin
阅读全文
posted @ 2022-11-23 15:39 梁紫娟
阅读(22)
评论(0)
推荐(0)
2022年11月3日
实验三 函数应用编程
摘要: 实验任务一 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[]);void
阅读全文
posted @ 2022-11-03 01:14 梁紫娟
阅读(65)
评论(0)
推荐(0)
2022年10月20日
实验二 C语言控制语句应用编程
摘要: 实验任务一 //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-20 00:08 梁紫娟
阅读(64)
评论(0)
推荐(0)
2022年10月13日
实验一 C语言开发环境使用和编程初体验
摘要: 实验任务一 //实验任务一 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_1.c //实验任务一 //task1_1.c #include <s
阅读全文
posted @ 2022-10-13 23:59 梁紫娟
阅读(108)
评论(0)
推荐(0)
公告