会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lvys
博客园
首页
新随笔
联系
订阅
管理
2023年12月20日
实验7 文件应用编程
摘要: task4 #define _CRT_SECURE_NO_WARNINGS 1 #include<stdlib.h> #include<stdio.h> #define N 100 int main() {FILE *fp; char n,*p; int count=0; fp=fopen("dat
阅读全文
posted @ 2023-12-20 22:56 lv_y
阅读(13)
评论(0)
推荐(0)
2023年12月14日
实验6 C语言结构体、枚举应用编程
摘要: task4 #include <stdio.h> #include<stdlib.h> #include<string.h> #define N 10 #define _CRT_SECURE_NO_WARNINGS 1 typedef struct { char isbn[20]; // isbn号
阅读全文
posted @ 2023-12-14 20:10 lv_y
阅读(10)
评论(0)
推荐(0)
2023年11月27日
实验5 C语言指针应用编程
摘要: task.1_1 源码 #include <stdio.h> #include<stdlib.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int
阅读全文
posted @ 2023-11-27 21:08 lv_y
阅读(29)
评论(0)
推荐(0)
2023年11月13日
实验4 C语言数组应用编程
摘要: 实验4 C语言数组应用编程 任务1_1 #include <stdio.h> #include<stdlib.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a
阅读全文
posted @ 2023-11-13 20:14 lv_y
阅读(26)
评论(0)
推荐(0)
2023年11月1日
实验3 C语言函数应用编程
摘要: 任务1 源码 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, char
阅读全文
posted @ 2023-11-01 20:46 lv_y
阅读(82)
评论(0)
推荐(0)
2023年10月16日
实验2 C语言分支与循环基础应用编程
摘要: 练习1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; srand( time(0)
阅读全文
posted @ 2023-10-16 19:32 lv_y
阅读(21)
评论(0)
推荐(0)
2023年10月4日
实验1 C语言输入输出和简单程序编写
摘要: 任务1_1源码 #include<stdio.h> #include<stdlib.h> int main() { printf(" O\n"); printf("<H>\n"); printf("I I\n"); printf(" O\n"); printf("<H>\n"); printf("I
阅读全文
posted @ 2023-10-04 08:49 lv_y
阅读(59)
评论(0)
推荐(0)
公告