会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wxy0105
博客园
首页
新随笔
联系
订阅
管理
2024年6月18日
实验七
摘要: Task4 1 #include<stdio.h> 2 3 int main(){ 4 int num=0; 5 char ch; 6 7 FILE *fp; 8 9 fp = fopen("data4.txt", "r"); 10 11 if(fp == NULL) { 12 printf("fa
阅读全文
posted @ 2024-06-18 14:45 王欣雨
阅读(21)
评论(0)
推荐(0)
2024年6月8日
实验六
摘要: task4 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]; // 作者 8 double sale
阅读全文
posted @ 2024-06-08 23:10 王欣雨
阅读(45)
评论(0)
推荐(0)
2024年5月26日
实验五
摘要: task1_1 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 *pmi
阅读全文
posted @ 2024-05-26 14:58 王欣雨
阅读(29)
评论(0)
推荐(0)
2024年5月19日
实验四
摘要: task1_1 1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 8 // 输出数组a占用的内存字节数 9 printf("sizeof(a) = %d\n", si
阅读全文
posted @ 2024-05-19 00:41 王欣雨
阅读(40)
评论(0)
推荐(0)
2024年4月27日
实验三
摘要: 实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 7 void print_text(int line, int col, char
阅读全文
posted @ 2024-04-27 11:48 王欣雨
阅读(27)
评论(0)
推荐(0)
2024年4月11日
实验二
摘要: 1.实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() 8 { 9 int number; 10 int i; 11 12 srand( time(0)
阅读全文
posted @ 2024-04-11 17:52 王欣雨
阅读(18)
评论(0)
推荐(0)
2024年3月14日
实验1_C语言输入输出和简单程序编写
摘要: task1_1 1 #include <stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O \n"); 9 print
阅读全文
posted @ 2024-03-14 17:37 王欣雨
阅读(46)
评论(0)
推荐(0)
公告