摘要:
TASK4: `#define _CRT_SECURE_NO_WARNINGS include <stdio.h> include <ctype.h> int main() { FILE* fp; int ch; int line_count = 0; int char_count = 0; int 阅读全文
posted @ 2025-06-09 10:37
零泉珑心
阅读(10)
评论(0)
推荐(0)
|
摘要:
TASK4: `#define _CRT_SECURE_NO_WARNINGS include <stdio.h> include <ctype.h> int main() { FILE* fp; int ch; int line_count = 0; int char_count = 0; int 阅读全文
posted @ 2025-06-09 10:37
零泉珑心
阅读(10)
评论(0)
推荐(0)
摘要:
TASK4: `#define _CRT_SECURE_NO_WARNINGS include <stdio.h> define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; / 阅读全文
posted @ 2025-06-02 22:28
零泉珑心
阅读(9)
评论(0)
推荐(0)
摘要:
task1: `#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 @ 2025-05-19 11:10
零泉珑心
阅读(13)
评论(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-20 22:45
零泉珑心
阅读(14)
评论(0)
推荐(0)
摘要:
`#define _CRT_SECURE_NO_WARNINGS include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while (scanf("%d", &sco 阅读全文
posted @ 2025-04-09 16:55
零泉珑心
阅读(9)
评论(0)
推荐(0)
摘要:
1.随机生成一个1~100的数 2.保留四位小数 3.随机生成一个学号 1.重置金额 2.break终止整个循环 continue仅终止这个小循环并继续执行循环 3.没必要,default并非必须 `#define _CRT_SECURE_NO_WARNINGS include<stdio.h> i 阅读全文
posted @ 2025-03-23 21:57
零泉珑心
阅读(17)
评论(0)
推荐(0)
摘要:
`#include<stdio.h> int main() { printf(" o \n"); printf("\n"); printf("I I\n"); return 0; }` `#define _CRT_SECURE_NO_WARNINGS // 从键盘上输入三个数据作为三角形边长,判断其 阅读全文
posted @ 2025-03-08 23:19
零泉珑心
阅读(24)
评论(0)
推荐(0)
|