会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Obrez
博客园
首页
新随笔
联系
订阅
管理
2024年12月16日
实验6
摘要: 实验任务4 Vector.hpp 1 #ifndef VECTOR_HPP 2 #define VECTOR_HPP 3 4 5 #include <iostream> 6 #include <stdexcept> 7 #include <memory> 8 9 template <typename
阅读全文
posted @ 2024-12-16 10:31 It-just-works
阅读(16)
评论(0)
推荐(0)
2024年12月4日
实验五
摘要: 实验任务3 pets.hpp 1 #pragma once; 2 3 #include <iostream> 4 #include <string> 5 6 using namespace std; 7 8 class MachinePets{ 9 private: 10 string nickna
阅读全文
posted @ 2024-12-04 10:32 It-just-works
阅读(18)
评论(0)
推荐(0)
2024年11月24日
实验四
摘要: 2.实验任务2 GradeCalc.hpp 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 #include <algorithm> 5 #include <numeric> 6 #include <iomanip> 7
阅读全文
posted @ 2024-11-24 13:33 It-just-works
阅读(14)
评论(0)
推荐(0)
2024年11月4日
实验三
摘要: 1、实验任务1 button.hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::string; 7 using std::cout; 8 9 // 按钮类 10 class Button { 1
阅读全文
posted @ 2024-11-04 18:09 It-just-works
阅读(35)
评论(0)
推荐(0)
2024年10月23日
实验二
摘要: 1. 实验任务1 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T &t);
阅读全文
posted @ 2024-10-23 13:41 It-just-works
阅读(27)
评论(0)
推荐(0)
2024年10月10日
实验课作业一
摘要: 1. 实验任务1 #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; // 声明 // 模板函数声明 template<typename T> void o
阅读全文
posted @ 2024-10-10 13:21 It-just-works
阅读(26)
评论(0)
推荐(0)
2023年12月20日
实验七
摘要: task4 #include <stdio.h> #include <string.h> #define N 5 #define M 80 int main() { char songs[N][M]; FILE* fp; fp = fopen("data1.txt", "r"); if (fp ==
阅读全文
posted @ 2023-12-20 22:08 It-just-works
阅读(18)
评论(0)
推荐(0)
2023年12月11日
实验六
摘要: task.4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价
阅读全文
posted @ 2023-12-11 20:37 It-just-works
阅读(11)
评论(0)
推荐(0)
2023年11月27日
实验五
摘要: 1. 实验任务一 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 @ 2023-11-27 17:27 It-just-works
阅读(31)
评论(0)
推荐(0)
2023年11月13日
实验4
摘要: 1、实验任务一 1.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)); // 输
阅读全文
posted @ 2023-11-13 20:48 It-just-works
阅读(30)
评论(0)
推荐(0)
下一页
公告