会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Z20051022
博客园
首页
新随笔
联系
管理
订阅
2024年12月30日
实验七
摘要: 2. //多了一行,且输出一个8。75-76行是判断文件指针是否已经指向文件结尾了,当number等于一时则已经结束,break。 3. \'意义就是输出一个 ' 的符号。 4. 1 #include<stdio.h> 2 #define N 100 3 4 int main(){ 5 char s
阅读全文
posted @ 2024-12-30 08:25 鬼上身
阅读(2)
评论(0)
推荐(0)
2024年12月18日
实验六
摘要: 四 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 sales_pr
阅读全文
posted @ 2024-12-18 01:11 鬼上身
阅读(10)
评论(0)
推荐(0)
2024年12月7日
实验五
摘要: 1. 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, m
阅读全文
posted @ 2024-12-07 00:38 鬼上身
阅读(11)
评论(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 23:50 鬼上身
阅读(10)
评论(0)
推荐(0)
2024年10月30日
实验三
摘要: 任务一: #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_
阅读全文
posted @ 2024-10-30 01:51 鬼上身
阅读(20)
评论(0)
推荐(0)
3
摘要: 任务一: #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_
阅读全文
posted @ 2024-10-30 01:51 鬼上身
阅读(5)
评论(0)
推荐(0)
2024年10月14日
分数前n项之和
摘要:
阅读全文
posted @ 2024-10-14 08:42 鬼上身
阅读(5)
评论(0)
推荐(0)
2024年10月12日
实验二
摘要: 任务一: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 //11班第一位学生的尾号 #define N2 476 //12班最后一位学生的尾号 #define N3 21 //奇
阅读全文
posted @ 2024-10-12 17:38 鬼上身
阅读(8)
评论(0)
推荐(0)
2024年10月2日
实验一
摘要: 取代回车的位置
阅读全文
posted @ 2024-10-02 05:21 鬼上身
阅读(5)
评论(0)
推荐(0)
公告