会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ctl050312
博客园
首页
新随笔
联系
订阅
管理
2023年12月21日
实验7
摘要: task1_1.c 1 // 将图书信息写入文本文件data1.txt 2 3 #include <stdio.h> 4 5 #define N 80 6 7 typedef struct { 8 char name[N]; // 书名 9 char author[N]; // 作者 10 } Bo
阅读全文
posted @ 2023-12-21 14:35 韷
阅读(14)
评论(0)
推荐(0)
2023年12月17日
实验6
摘要: task1.c 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <string.h> 4 #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 5 typedef struct stude
阅读全文
posted @ 2023-12-17 17:19 韷
阅读(14)
评论(0)
推荐(0)
2023年12月3日
实验五
摘要: task1.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[], int n, int *
阅读全文
posted @ 2023-12-03 20:25 韷
阅读(15)
评论(0)
推荐(0)
2023年11月16日
实验四
摘要: task1_1.c源代码 1 #include <stdio.h> 2 #define N 4 3 void test1() { 4 int a[N] = { 1, 9, 8, 4 }; 5 int i; 6 // 输出数组a占用的内存字节数 7 printf("sizeof(a) = %d\n",
阅读全文
posted @ 2023-11-16 17:36 韷
阅读(15)
评论(0)
推荐(0)
2023年11月5日
实验三
摘要: task1.c源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void print_text(int line, int col, c
阅读全文
posted @ 2023-11-05 13:18 韷
阅读(14)
评论(0)
推荐(0)
2023年10月16日
实验二
摘要: task1.c源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main() 10 { 11 int nu
阅读全文
posted @ 2023-10-16 17:09 韷
阅读(24)
评论(0)
推荐(0)
2023年9月28日
实验一 c语言输入输出和简单程序编写
摘要: task1.c源代码 #include<stdio.h> #include<stdlib.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } 运行结果 #include<stdio.h> int
阅读全文
posted @ 2023-09-28 15:18 韷
阅读(88)
评论(0)
推荐(0)
公告