摘要: test 1: 第n 条数据为空,并且无法输出第一天条数据 test 2: 用feof test 4: #include<stdio.h> int main() { FILE* fp; fp = fopen("E:\\whatever666", "r"); char qwe; int q = 0; 阅读全文
posted @ 2023-12-17 21:52 李宇晨呵呵 阅读(31) 评论(0) 推荐(0)
摘要: test4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i 阅读全文
posted @ 2023-12-17 16:47 李宇晨呵呵 阅读(9) 评论(0) 推荐(0)
摘要: 1.1 找到最大值和最小值 数组 x 的第一个元素 x[0] 的值 1.2 最大值所在元素的地址 不,地址不能交换 2.1 1__23 sizeof(s1) 计算的是数组 s1 在内存中所占用的字节数 strlen(s1) 统计的是字符串 s1 中的字符数 2__不能 未分配地址 3__能 2.2 阅读全文
posted @ 2023-12-03 17:45 李宇晨呵呵 阅读(30) 评论(0) 推荐(0)
摘要: tast1.1#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)); // 输出int类 阅读全文
posted @ 2023-11-19 17:53 李宇晨呵呵 阅读(20) 评论(0) 推荐(0)
摘要: test1 #include<stdio.h> #include<time.h> #include<stdlib.h> #include<windows.h> #define N 80 void test_(int line, int col, char test[]); void space(in 阅读全文
posted @ 2023-11-04 10:09 李宇晨呵呵 阅读(30) 评论(0) 推荐(0)
摘要: test1 #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-19 21:58 李宇晨呵呵 阅读(27) 评论(0) 推荐(0)
摘要: test1.1#include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; 阅读全文
posted @ 2023-10-07 10:42 李宇晨呵呵 阅读(38) 评论(0) 推荐(0)