会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gwy1004
博客园
首页
新随笔
联系
订阅
管理
2024年12月29日
实验7
摘要: 1.实验任务4 程序task4.c源码 1 #include <stdio.h> 2 #define N 10 3 #define M 100 4 5 6 int main(){ 7 char x[N][M]; 8 int i,j,cnt=0,count=0; 9 FILE *fp; 10 11 f
阅读全文
posted @ 2024-12-29 10:08 顾大智
阅读(30)
评论(0)
推荐(0)
2024年12月16日
实验6
摘要: 4. 实验任务4 完整的task4.c源码 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]; //
阅读全文
posted @ 2024-12-16 17:51 顾大智
阅读(18)
评论(0)
推荐(0)
2024年12月5日
实验5
摘要: 1. 实验任务1 task1_1.c程序源码 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[],
阅读全文
posted @ 2024-12-05 15:36 顾大智
阅读(61)
评论(0)
推荐(0)
2024年11月5日
实验4
摘要: 实验1 源代码 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 // 输出数组x占用的内存字节数 10 printf("sizeof
阅读全文
posted @ 2024-11-05 20:39 顾大智
阅读(17)
评论(0)
推荐(0)
2024年10月25日
实验3
摘要: 任务1 1 #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf("%d", &score) != EOF) { 10 gr
阅读全文
posted @ 2024-10-25 16:47 顾大智
阅读(24)
评论(0)
推荐(0)
2024年10月10日
实验2
摘要: 任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 397 7 #define N2 476 8 #define N3 21 9 10 int main(){
阅读全文
posted @ 2024-10-10 17:03 顾大智
阅读(29)
评论(0)
推荐(0)
2024年9月26日
实验1
摘要: 1.实验任务1 在垂直方向上打印两个字符小人的c程序源代码task1_1.c, 1 #include <stdio.h> 2 int main() 3 { 4 5 printf(" O\n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O\n
阅读全文
posted @ 2024-09-26 17:18 顾大智
阅读(29)
评论(0)
推荐(0)
公告