会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
201314yyq
博客园
首页
新随笔
联系
订阅
管理
2025年12月30日
实验7
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <string.h> 4 #include <ctype.h> 5 6 char c; 7 int a=1, b=0; 8 9 int main() { 10 FILE
阅读全文
posted @ 2025-12-30 22:27 叶永祺
阅读(8)
评论(1)
推荐(0)
2025年12月23日
实验6
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char author[80]; //
阅读全文
posted @ 2025-12-23 12:04 叶永祺
阅读(32)
评论(1)
推荐(0)
2025年12月16日
5(补)
摘要: task2.1 问3:交换 问3:交换的是s1与s2的指向地址,,,,没有交换 task8 1 #include <stdio.h> 2 3 int main(int argc, char *argv[]) { 4 int i; 5 6 for(i = 1; i < argc; ++i) 7 pri
阅读全文
posted @ 2025-12-16 22:33 叶永祺
阅读(5)
评论(0)
推荐(0)
2025年12月11日
实验5
摘要: 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmin, int *
阅读全文
posted @ 2025-12-11 12:02 叶永祺
阅读(13)
评论(1)
推荐(0)
2025年11月16日
实验4
摘要: task1.c 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 printf("sizeof(x) = %d\n", sizeof(
阅读全文
posted @ 2025-11-16 22:58 叶永祺
阅读(10)
评论(1)
推荐(0)
2025年10月30日
实验3
摘要: task1.c 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() 6 { 7 int score; 8 char grade; 9 10 while(scanf("%d", &score) != EOF) {
阅读全文
posted @ 2025-10-30 00:44 叶永祺
阅读(10)
评论(1)
推荐(0)
2025年10月18日
实验2
摘要: task1.c 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main(){ 10 int cnt; 11 int
阅读全文
posted @ 2025-10-18 09:33 叶永祺
阅读(10)
评论(1)
推荐(0)
2025年10月8日
实验1
摘要: task2.c 1 #include <stdio.h> 2 3 int main() 4 { 5 double a, b, c; 6 7 scanf("%lf%lf%lf", &a, &b, &c); 8 9 if((a+b>c)&&(b+c>a)&&(a+c>b)) 10 printf("能构成
阅读全文
posted @ 2025-10-08 11:44 叶永祺
阅读(7)
评论(1)
推荐(0)
公告