会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Eternity91
博客园
首页
新随笔
联系
订阅
管理
2023年12月20日
实验7 文件应用编程
摘要: 实验任务4:文件简单应用 程序源码 1 #include<stdio.h> 2 3 int main(){ 4 FILE *fp; 5 long size; 6 int c; 7 int count = 0; 8 fp = fopen("C:\\data\\data4.txt", "rb"); 9
阅读全文
posted @ 2023-12-20 19:23 Eternity//
阅读(21)
评论(0)
推荐(0)
2023年12月12日
实验6 c语言结构体、枚举应用编程
摘要: 实验任务4 程序源码 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double
阅读全文
posted @ 2023-12-12 16:10 Eternity//
阅读(14)
评论(0)
推荐(0)
2023年11月29日
实验5 c语言指针应用编程
摘要: 实验任务1 task1_1.c 程序源码 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], in
阅读全文
posted @ 2023-11-29 22:25 Eternity//
阅读(17)
评论(0)
推荐(0)
2023年11月19日
实验4C语言数组应用编程
摘要: 实验任务1 task1_1.c 程序源码 1 #include<stdio.h> 2 #define N 4 3 4 void test1(){ 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 8 9 printf("sizeof(a) = %d\n", sizeof(a
阅读全文
posted @ 2023-11-19 09:58 Eternity//
阅读(30)
评论(0)
推荐(0)
2023年11月5日
试验3 c语言函数应用编程
摘要: 实验任务1 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void print_text(int line, int col, char
阅读全文
posted @ 2023-11-05 15:49 Eternity//
阅读(13)
评论(0)
推荐(0)
2023年10月21日
实验2 C语言分支与循环基础应用编程
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main () 10 { 11 int
阅读全文
posted @ 2023-10-21 20:31 Eternity//
阅读(14)
评论(0)
推荐(0)
2023年10月3日
实验1c语言输入输出和简单程序编写
摘要: 实验任务1 1.竖直小人 源代码 1 //打印一个字符小人 2 3 #include <stdio.h> 4 int main() 5 { 6 printf(" O \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 printf(" O \n"); 10 p
阅读全文
posted @ 2023-10-03 16:28 Eternity//
阅读(13)
评论(0)
推荐(0)
公告