会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ajybky
博客园
首页
新随笔
联系
订阅
管理
2024年6月18日
实验七
摘要: / 将图书信息写入文本文件data1.txt // 再从文件中读取图书信息,打印输出到屏幕上,并显示行号 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 char author[N]
阅读全文
posted @ 2024-06-18 22:47 艾杰伊
阅读(12)
评论(0)
推荐(0)
2024年6月6日
实验六
摘要: #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char subje
阅读全文
posted @ 2024-06-06 19:52 艾杰伊
阅读(10)
评论(0)
推荐(0)
2024年5月23日
实验五
摘要: task1.1 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax
阅读全文
posted @ 2024-05-23 20:16 艾杰伊
阅读(18)
评论(0)
推荐(0)
2024年5月17日
实验四
摘要: #include <stdio.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)); // 输出int类型数组a中每个
阅读全文
posted @ 2024-05-17 18:22 艾杰伊
阅读(14)
评论(0)
推荐(0)
2024年4月26日
实验3 C语言函数应用编程
摘要: task1 #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明 void print_spaces(int n); // 函数声明 v
阅读全文
posted @ 2024-04-26 20:37 艾杰伊
阅读(10)
评论(0)
推荐(0)
2024年4月14日
实验2 C语言分支与循环基础应用编程
摘要: task1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int number; int i; srand( time(0) ); for(i = 0;i < N; ++i) { numb
阅读全文
posted @ 2024-04-14 09:52 艾杰伊
阅读(20)
评论(0)
推荐(0)
2024年3月12日
实验1 C语言开发环境使用和数据类型、运算符、表达式
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 printf(" o \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 return 0; 9 } #include<stdio.h> int main() { printf(
阅读全文
posted @ 2024-03-12 23:22 艾杰伊
阅读(23)
评论(0)
推荐(0)
公告