会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SunYuTing
博客园
首页
新随笔
联系
订阅
管理
2023年12月20日
实验7—文件应用编程
摘要: 4、实验任务4 源代码 1 #include<stdio.h> 2 3 int main(){ 4 FILE *fp; 5 fp=fopen("d:\\data4.txt","r"); 6 if(fp==NULL){ 7 printf("fail to open file.\n"); 8 retur
阅读全文
posted @ 2023-12-20 14:29 孙雨婷
阅读(26)
评论(0)
推荐(0)
2023年12月13日
实验6—C语言结构体、枚举应用编程
摘要: 4、试验任务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 doubl
阅读全文
posted @ 2023-12-13 00:29 孙雨婷
阅读(32)
评论(0)
推荐(0)
2023年11月29日
实验5—C语言指针应用编程
摘要: 1、实验任务1 task1_1 源代码 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[], int
阅读全文
posted @ 2023-11-29 22:29 孙雨婷
阅读(38)
评论(0)
推荐(0)
2023年11月19日
实验4—C语言数组应用编程
摘要: 1、实验任务1 task1_1 源代码 #include <stdio.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a
阅读全文
posted @ 2023-11-19 23:23 孙雨婷
阅读(21)
评论(0)
推荐(0)
2023年11月3日
实验3—C语言函数应用编程
摘要: 1、实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void print_text(int line, int col,
阅读全文
posted @ 2023-11-03 17:07 孙雨婷
阅读(34)
评论(0)
推荐(0)
2023年10月20日
实验2— C语言分支与循环基础应用编程
摘要: 1.实验任务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-20 16:17 孙雨婷
阅读(17)
评论(0)
推荐(0)
2023年9月30日
实验1—C语言输入输出和简单程序应用编写
摘要: 1.实验1 实验1_1源代码 1 #include <stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf("\n"); 9 p
阅读全文
posted @ 2023-09-30 21:53 孙雨婷
阅读(49)
评论(0)
推荐(0)
公告