会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chenya17
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2025年12月2日
实验4
摘要: 实验任务1: 代码: GradeCalc.hpp 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(const
阅读全文
posted @ 2025-12-02 23:51 雅ya
阅读(1)
评论(0)
推荐(0)
2025年11月26日
实验3
摘要: 实验任务1: 代码: button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 class Button { 7 public: 8 Button(const std::string &label_); 9 c
阅读全文
posted @ 2025-11-26 01:21 雅ya
阅读(4)
评论(1)
推荐(0)
2025年10月28日
实验二
摘要: 1、实验任务1: T.h源代码: 1 #pragma once 2 3 #include <string> 4 5 class T { 6 7 public: 8 T(int x = 0, int y = 0); 9 T(const T &t); 10 T(T &&t); 11 ~T(); 12 1
阅读全文
posted @ 2025-10-28 22:56 雅ya
阅读(6)
评论(1)
推荐(0)
2025年10月18日
实验1
摘要: 1.实验任务1 源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T &c);
阅读全文
posted @ 2025-10-18 01:12 雅ya
阅读(13)
评论(1)
推荐(0)
2024年12月30日
实验7
摘要: 实验任务4: 源代码: 1 #include <stdio.h> 2 #include <string.h> 3 4 int main() { 5 FILE *fp; 6 char line[100]; 7 int a = 0; 8 int s = 0; 9 int i; 10 11 fp = fo
阅读全文
posted @ 2024-12-30 02:16 雅ya
阅读(12)
评论(0)
推荐(0)
2024年12月22日
实验6
摘要: 实验任务4: 源代码: 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; 6 char name[80]; 7 char author[80]; 8 double sales_price; 9 int
阅读全文
posted @ 2024-12-22 21:27 雅ya
阅读(12)
评论(0)
推荐(0)
2024年12月8日
实验五
摘要: 实验任务1: (1)源代码: 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[],int n); 5 void output(int x[],int n); 6 void find_min_max(int x[], int n, int
阅读全文
posted @ 2024-12-08 20:02 雅ya
阅读(13)
评论(0)
推荐(0)
2024年11月10日
实验四
摘要: 实验任务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 printf("sizeof(x) = %d\n",sizeof(x
阅读全文
posted @ 2024-11-10 18:15 雅ya
阅读(19)
评论(0)
推荐(0)
2024年10月29日
实验三
摘要: 实验任务1: 源代码: 1 #include <stdio.h> 2 char score_to_grade(int score); 3 int main(){ 4 int score; 5 char grade; 6 7 while(scanf("%d",&score) !=EOF){ 8 gra
阅读全文
posted @ 2024-10-29 18:09 雅ya
阅读(13)
评论(0)
推荐(0)
2024年10月11日
实验2
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 int main(){ 6 int luckyday,x,y=3; 7 8 printf("猜猜2024年11月哪一天会是你的lucky day\n"); 9 10
阅读全文
posted @ 2024-10-11 14:36 雅ya
阅读(17)
评论(0)
推荐(0)
1
2
下一页
公告