会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ws040529
博客园
首页
新随笔
联系
订阅
管理
2022年12月27日
实验6 文件应用编程
摘要: 实验四 #include <stdio.h> int main() { char ch; FILE* fp; fp = fopen("data3.txt", "r"); if (fp == NULL) { printf("fail to open file\n"); return 1; } ch =
阅读全文
posted @ 2022-12-27 18:32 珅
阅读(19)
评论(0)
推荐(0)
2022年12月26日
实验5 结构体应用编程
摘要: 实验三 #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:16 珅
阅读(14)
评论(0)
推荐(0)
2022年11月23日
实验4 数组应用编程
摘要: 实验一 #include <stdio.h> #define N 4 #include <stdlib.h> int main() { int a[N] = {1, 9, 8, 4}; char b[N] = {'1', '9', '8', '4'}; int i; printf("sizeof(i
阅读全文
posted @ 2022-11-23 16:59 珅
阅读(45)
评论(0)
推荐(0)
2022年11月5日
实验3 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 print
阅读全文
posted @ 2022-11-05 19:03 珅
阅读(59)
评论(0)
推荐(0)
2022年10月20日
实验2 C语言控制语句应用编程
摘要: 实验一 #include <math.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i=0;i<N;++i) { number =rand()%500+1; printf("2
阅读全文
posted @ 2022-10-20 11:19 珅
阅读(55)
评论(0)
推荐(0)
2022年10月17日
实验1 C语言开发环境使用和编程初体验
摘要: 实验一 #include <stdio.h> int main() { printf("%s%8s\n", " O ", " O "); printf("%s%8s\n", "<H>", "<H>"); printf("%s%8s\n", "I I", "I I"); } #include <std
阅读全文
posted @ 2022-10-17 20:09 珅
阅读(55)
评论(0)
推荐(0)
公告