摘要: 实验任务1: 程序源代码: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf(" 阅读全文
posted @ 2025-04-19 23:35 起司配咖啡 阅读(6) 评论(0) 推荐(0)
摘要: 实验任务1 程序源代码: 1 #include <stdio.h> 2 #include<stdlib.h> 3 char score_to_grade(int score); 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf(" 阅读全文
posted @ 2025-04-07 20:36 起司配咖啡 阅读(2) 评论(0) 推荐(0)
摘要: 实验任务1: 程序源代码: 1 //task2_1.c 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <time.h> 5 #define N 5 6 int main() { 7 int number; 8 int i; 9 srand 阅读全文
posted @ 2025-03-21 19:38 起司配咖啡 阅读(5) 评论(0) 推荐(0)
摘要: 实验任务1 程序源代码: 1 //实验任务1_1.c 2 #include<stdio.h>; 3 #include<stdlib.h>; 4 int main() 5 { 6 7 printf("%s\n","task1_1.c"); 8 printf(" O \n"); 9 printf("<H 阅读全文
posted @ 2025-03-07 19:26 起司配咖啡 阅读(12) 评论(0) 推荐(0)