会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
meng36
博客园
首页
新随笔
联系
订阅
管理
2023年12月20日
实验7 文件应用编程
摘要: task4 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main(){ 5 FILE *fp; 6 char ch; 7 int cnt=0; 8 9 fp = fopen("d:\\date\\data4.txt","r"); 10 i
阅读全文
posted @ 2023-12-20 18:03 Meng36
阅读(21)
评论(0)
推荐(0)
2023年12月15日
实验6 c语言结构体,枚举应用编程
摘要: task4 源代码 1 #include <stdio.h> 2 #include<string.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char author
阅读全文
posted @ 2023-12-15 14:35 Meng36
阅读(30)
评论(0)
推荐(0)
2023年11月29日
实验5 c语言指针应用编程
摘要: 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 n, int *pmi
阅读全文
posted @ 2023-11-29 20:33 Meng36
阅读(31)
评论(0)
推荐(0)
2023年11月16日
实验4 c语言数组应用编程
摘要: task1_1 task1_1源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 5 void test1(){ 6 int a[N]={1,9,8,4}; 7 int i; 8 9 printf("sizeof(a)=%d\n"
阅读全文
posted @ 2023-11-16 17:07 Meng36
阅读(36)
评论(0)
推荐(0)
2023年10月31日
实验3 c语言函数应用编程
摘要: task1 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,cha
阅读全文
posted @ 2023-10-31 19:19 Meng36
阅读(34)
评论(0)
推荐(0)
2023年10月20日
实验2 c语言分支与循环基础应用编程
摘要: 实验1 实验1的源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #define N 5 5 #define N1 374 6 #define N2 465 7 int main(){ 8 int number; 9
阅读全文
posted @ 2023-10-20 12:47 Meng36
阅读(52)
评论(0)
推荐(0)
2023年10月2日
实验1 c语言输入输出和简单程序编写
摘要: 1.实验1 实验1_1源代码 1 #include <stdio.h> 2 int main() 3 { 4 printf("O\n"); 5 printf("<H>\n"); 6 printf(I I\n); 7 8 return 0; 9 } 实验1_1运行结果截图 task1_1.c 垂直小人
阅读全文
posted @ 2023-10-02 15:10 Meng36
阅读(144)
评论(0)
推荐(0)
公告