摘要:
实验4 #include<stdio.h> int main() { char a; int count=0; FILE *fp; fp = fopen("data4.txt","r"); if(fp==NULL) { printf("fail to open\n"); return 1; } wh 阅读全文
posted @ 2023-12-20 16:16
陈星我儿
阅读(22)
评论(0)
推荐(0)
摘要:
实验4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int 阅读全文
posted @ 2023-12-11 17:20
陈星我儿
阅读(33)
评论(0)
推荐(0)
摘要:
实验1 功能是分别找到输入数中的最小值和最大值 两者都指向x[0] 功能是找到最大数,返回的是最大数的地址 可以,因为改变之后返回的也是最大值的地址 实验2 s1大小是24个字节,sizeof以字节为单位返回一个变量,表达式或类型的长度, strlen是计算字符串长度的,不包含结尾符号‘\0’ 不能 阅读全文
posted @ 2023-12-03 21:56
陈星我儿
阅读(29)
评论(0)
推荐(0)
浙公网安备 33010602011771号