摘要: 四 #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> int count(); int countChars(); int main() { int linecount = 0; int charcount = 0; printf("data4. 阅读全文
posted @ 2025-06-07 15:20 卢诗涵 阅读(21) 评论(0) 推荐(0)
摘要: 四 #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 阅读全文
posted @ 2025-06-01 20:57 卢诗涵 阅读(12) 评论(0) 推荐(0)
摘要: 一 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); i 阅读全文
posted @ 2025-05-18 16:27 卢诗涵 阅读(23) 评论(0) 推荐(0)
摘要: 一 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)); // 阅读全文
posted @ 2025-04-19 07:31 卢诗涵 阅读(18) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> char score_to_grade(int score); int main() { int score; char grade; while (scanf_s("%d", &score) != EOF) { grade = score_to_grade( 阅读全文
posted @ 2025-04-08 13:01 卢诗涵 阅读(28) 评论(0) 推荐(0)
摘要: 一 #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) { number 阅读全文
posted @ 2025-03-22 14:11 卢诗涵 阅读(11) 评论(0) 推荐(0)
摘要: #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; } #inc 阅读全文
posted @ 2025-03-09 09:57 卢诗涵 阅读(15) 评论(0) 推荐(0)