会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
miaochengsheng
博客园
首页
新随笔
联系
订阅
管理
2024年12月29日
实验5
摘要: demo1.c #include <stdio.h> #define N 5 void input(int x[],int n); void output(int x[],int n); void find_min_max(int x[],int n,int *pmin,int *pmax); in
阅读全文
posted @ 2024-12-29 09:20 nightmare777
阅读(13)
评论(0)
推荐(0)
2024年12月25日
实验7
摘要: demo1.c 代码 #include <stdio.h> #define N 80 #define M 100 typedef struct{ char name[N]; char author[N]; }Book; void write(); void read(); int main(){ p
阅读全文
posted @ 2024-12-25 17:39 nightmare777
阅读(22)
评论(0)
推荐(0)
2024年12月22日
实验6
摘要: demo1 #include <stdio.h> #include <string.h> #define N 3 typedef struct student{ //建立结构体(类的初始化) int id; char name[20];//字符型数组不需要&??? char subject[20];
阅读全文
posted @ 2024-12-22 11:07 nightmare777
阅读(20)
评论(0)
推荐(0)
2024年11月10日
实验4
摘要: Task1 #include <stdio.h>#define N 4#define M 2void test1(){ int x[N]={1,9,8,4}; int i; //输出数组x所占用的字节 printf("sizeof(x)=%d\n",sizeof(x)); //输出每个元素占据的地址
阅读全文
posted @ 2024-11-10 17:42 nightmare777
阅读(8)
评论(0)
推荐(0)
2024年10月29日
实验3
摘要: 实验1 #include <stdio.h> char score_to_grade(int score); int main(){ int score; char grade; while(scanf("%d",&score)!=EOF){ grade=score_to_grade(score);
阅读全文
posted @ 2024-10-29 21:46 nightmare777
阅读(16)
评论(0)
推荐(0)
2024年10月10日
实验二 C语言分支与循环基础应用编程-1
摘要: task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main(){ int cnt; int rand
阅读全文
posted @ 2024-10-10 14:54 nightmare777
阅读(31)
评论(0)
推荐(0)
2024年9月29日
实验1 C语言输入输出和简单程序编写
摘要: task1_1.c 源代码 // 打印一个字符小人 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf(
阅读全文
posted @ 2024-09-29 14:56 nightmare777
阅读(27)
评论(0)
推荐(0)
公告