会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
NJ-1230
博客园
首页
新随笔
联系
订阅
管理
2023年12月21日
实验7_文件应用编程
摘要: task4.c #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { long i = 0; char ch; FILE* fp; fp = fopen("c://data//data4.txt", "r"); while (!
阅读全文
posted @ 2023-12-21 12:14 liritty
阅读(24)
评论(0)
推荐(0)
2023年12月17日
实验6_C语言结构体、枚举应用编程
摘要: task4.c #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价
阅读全文
posted @ 2023-12-17 21:10 liritty
阅读(28)
评论(0)
推荐(0)
2023年12月3日
实验5_C语言指针应用编程
摘要: task1_1.c #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 *pm
阅读全文
posted @ 2023-12-03 20:09 liritty
阅读(44)
评论(0)
推荐(0)
2023年11月19日
实验4_C语言数组应用编程
摘要: task 1_1.c #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)); // 输出
阅读全文
posted @ 2023-11-19 20:58 liritty
阅读(43)
评论(0)
推荐(0)
2023年11月5日
实验3_C语言函数应用编程
摘要: task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); //
阅读全文
posted @ 2023-11-05 21:36 liritty
阅读(40)
评论(0)
推荐(0)
2023年10月22日
实验2_C语言分枝与循环基础应用编程
摘要: 试验任务1 task 1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; sran
阅读全文
posted @ 2023-10-22 17:23 liritty
阅读(23)
评论(0)
推荐(0)
2023年10月4日
实验1 C语言输入输出和简单程序编写
摘要: 1.试验任务1 task1.c //打印一个字符小人 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_1.c //在垂直方向上打印出两个小人 #i
阅读全文
posted @ 2023-10-04 22:54 liritty
阅读(123)
评论(0)
推荐(0)
公告