会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bsdxxg
博客园
首页
新随笔
联系
订阅
管理
2024年6月19日
实验7
摘要: task4 #include<stdio.h> int main(){ int i = 0; char ch; FILE *fp; fp = fopen("data4.txt","r"); if(fp == NULL) { printf("fail to open file\n"); return
阅读全文
posted @ 2024-06-19 21:46 悲伤的小西瓜
阅读(28)
评论(0)
推荐(0)
2024年6月7日
实验6
摘要: task4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i
阅读全文
posted @ 2024-06-07 16:41 悲伤的小西瓜
阅读(39)
评论(0)
推荐(0)
2024年5月25日
实验5
摘要: 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-25 12:35 悲伤的小西瓜
阅读(32)
评论(0)
推荐(0)
2024年5月18日
实验4
摘要: task1_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) = %d\n", s
阅读全文
posted @ 2024-05-18 10:08 悲伤的小西瓜
阅读(19)
评论(0)
推荐(0)
2024年4月27日
c语言实验三
摘要: task1 #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 @ 2024-04-27 19:43 悲伤的小西瓜
阅读(25)
评论(0)
推荐(0)
2024年4月13日
c语言实验2
摘要: TASK 1 #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) {
阅读全文
posted @ 2024-04-13 10:14 悲伤的小西瓜
阅读(34)
评论(0)
推荐(1)
2024年3月15日
C语言实验1
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); printf(" 0\n"); printf("<H>\n"); printf("I I\n");
阅读全文
posted @ 2024-03-15 19:51 悲伤的小西瓜
阅读(26)
评论(0)
推荐(0)
公告