会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zzcwe
导航
博客园
首页
新随笔
联系
订阅
管理
2025年6月9日
实验七
摘要: task4 #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h> int main() { FILE* fp; int lineCount = 0; int charCount = 0; char ch; fp =
阅读全文
posted @ 2025-06-09 12:25 EMPEEROR
阅读(9)
评论(0)
推荐(0)
2025年6月2日
实验6
摘要: task4 #include <stdio.h>#define N 10typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int
阅读全文
posted @ 2025-06-02 22:51 EMPEEROR
阅读(10)
评论(0)
推荐(0)
2025年4月20日
实验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 @ 2025-04-20 21:29 EMPEEROR
阅读(12)
评论(0)
推荐(0)
2025年4月8日
实验3
摘要: task1 #include <stdio.h>char score_to_grade(int score); // 函数声明int main() { int score; char grade; while (scanf("%d", &score) != EOF) { grade = score_
阅读全文
posted @ 2025-04-08 20:22 EMPEEROR
阅读(14)
评论(0)
推荐(0)
2025年3月19日
实验二
摘要: task1 #include <stdio.h>#include <stdlib.h>#include <time.h>#define N 5int main() { int number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for (i = 0; i
阅读全文
posted @ 2025-03-19 23:44 EMPEEROR
阅读(14)
评论(0)
推荐(0)
2025年3月5日
实验1
摘要: task1 #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;} t
阅读全文
posted @ 2025-03-05 18:32 EMPEEROR
阅读(9)
评论(0)
推荐(0)
公告