会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stf050829
博客园
首页
新随笔
联系
订阅
管理
2024年12月30日
实验7
摘要: #include <stdio.h> #include <stdlib.h> int is_word(char x); int main(){ FILE *fp; char ch; int i,line=1,count=0; fp=fopen("d:\\data4.txt","r"); if(!fp
阅读全文
posted @ 2024-12-30 20:47 石腾飞
阅读(8)
评论(0)
推荐(0)
2024年12月8日
实验五
摘要: void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax); int main() { int a[N]; int min, max;
阅读全文
posted @ 2024-12-08 23:47 石腾飞
阅读(4)
评论(0)
推荐(0)
2024年11月10日
实验四
摘要: #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)); // 输
阅读全文
posted @ 2024-11-10 21:18 石腾飞
阅读(3)
评论(0)
推荐(0)
2024年10月27日
实验3
摘要: #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gr
阅读全文
posted @ 2024-10-27 17:21 石腾飞
阅读(8)
评论(0)
推荐(0)
2024年10月15日
实验二
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 397 #define N2 467 #define N3 21 int main(){ int cnt; int random_major,ra
阅读全文
posted @ 2024-10-15 18:26 石腾飞
阅读(8)
评论(0)
推荐(0)
2024年9月29日
实验一
摘要: #include<stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf(" o\n"); printf("<H>\n"); printf("I I\n"); return 0; } #includ
阅读全文
posted @ 2024-09-29 19:22 石腾飞
阅读(7)
评论(0)
推荐(0)
2024年9月28日
实验一C语言开发环境使用和数据类型,运算符,表达式
摘要: include<stdio.h> int main() { printf(" o\n"); printf("\n"); printf("I I\n"); printf(" o\n"); printf("\n"); printf("I I\n"); return 0; } include<stdio.
阅读全文
posted @ 2024-09-28 23:23 石腾飞
阅读(21)
评论(1)
推荐(0)
公告