会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
huangyi-bit
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2023年12月21日
实验7
摘要: 实验1.2 有,原因是越界。 实验4 1 #include<stdio.h> 2 int main() 3 { 4 char ch; 5 int count = 0; 6 FILE* fp; 7 fp = fopen("\\data4.txt", "r"); 8 if (fp == NULL) 9
阅读全文
posted @ 2023-12-21 23:32 铭懿
阅读(44)
评论(0)
推荐(0)
2023年12月17日
实验6
摘要: 实验4 1 #include <stdio.h> 2 #include<string.h> 3 #define N 10 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; //
阅读全文
posted @ 2023-12-17 21:45 铭懿
阅读(45)
评论(0)
推荐(0)
2023年12月4日
实验5
摘要: 实验1 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int* pmin, int
阅读全文
posted @ 2023-12-04 13:08 铭懿
阅读(25)
评论(0)
推荐(0)
2023年11月20日
实验4
摘要: 实验4 #include <stdio.h> #define N 100 void dec_to_n(int x, int n); // 函数声明 int main() { int x; printf("输入一个十进制整数: "); while (scanf("%d", &x) != EOF) {
阅读全文
posted @ 2023-11-20 14:33 铭懿
阅读(25)
评论(0)
推荐(0)
2023年11月5日
实验3
摘要: 实验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, char test[
阅读全文
posted @ 2023-11-05 21:57 铭懿
阅读(12)
评论(0)
推荐(0)
2023年10月29日
实验1-实验任务7-8
摘要: 实验任务71 #include <stdio.h> 2 #include <math.h> 3 int main() 4 { 5 double C, F; 6 while (scanf_s("%lf", &C) != EOF) 7 { 8 F = C * 9 / 5 + 32; 9 printf("
阅读全文
posted @ 2023-10-29 21:18 铭懿
阅读(19)
评论(0)
推荐(0)
实验1-实验任务6
摘要: #include <stdio.h>#include <math.h>int main(){ double x, ans; while (scanf_s("%lf", &x) != EOF) { ans = pow(x, 365); printf("%.2f的365次方: %.2f\n", x, a
阅读全文
posted @ 2023-10-29 21:08 铭懿
阅读(34)
评论(0)
推荐(0)
实验1-实验任务5
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 int year; 5 year = (float)(static_cast<double>(1000000000 / 365 / 24 / 60) / 60) + 0.5; 6 printf("10亿秒约等于%d年\n
阅读全文
posted @ 2023-10-29 20:50 铭懿
阅读(17)
评论(0)
推荐(0)
实验1-实验任务4
摘要: #include<stdio.h> int main() { double x, y; char c1, c2, c3; int a1, a2, a3; scanf_s("%d%d%d",&a1, &a2, &a3); printf("a1 = %d, a2 = %d, a3 = %d\n", a1
阅读全文
posted @ 2023-10-29 20:43 铭懿
阅读(14)
评论(0)
推荐(0)
实验1-实验任务3
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 char ans1, ans2; // 用于保存用户输入的答案 5 printf("每次课前认真预习、课后及时复习了没? (输入y或Y表示有,输入n或N表示没有) :"); 6 ans1 = getchar(); //
阅读全文
posted @ 2023-10-29 20:10 铭懿
阅读(12)
评论(0)
推荐(0)
1
2
下一页
公告