摘要: 实验任务3 task3-1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main1() { using namespace std; array<int, N> x{ 97, 98, 99, 阅读全文
posted @ 2022-12-06 20:56 Cali-AKA 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #实验任务4 pets.h #pragma once #include <iostream> #include<string> using namespace std; class MachinePets { private: string nickname; public: MachinePets 阅读全文
posted @ 2022-11-29 23:42 Cali-AKA 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #实验任务5 vectorInt.h #pragma once #include<iostream> using namespace std; class vectorInt { private: int size; int* p; public: vectorInt(int n) :size{ n 阅读全文
posted @ 2022-11-06 14:31 Cali-AKA 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #实验任务五 Info.hpp #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class Info { private: string nickname; string 阅读全文
posted @ 2022-10-24 13:14 Cali-AKA 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #实验任务一 #include <iostream> #include <complex> int main(){ using namespace std; complex<double> c1{3, 4}, c2{4.5};//支持两个参数//使用时,在语法层面需要通过<>指定具体类型(即特化到特 阅读全文
posted @ 2022-10-17 19:54 Cali-AKA 阅读(22) 评论(0) 推荐(0) 编辑
摘要: #实验任务1 #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; stri 阅读全文
posted @ 2022-10-05 12:36 Cali-AKA 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #个人博客地址 https://www.cnblogs.com/Cali-AKA/ 阅读全文
posted @ 2022-09-29 23:00 Cali-AKA 阅读(5) 评论(0) 推荐(0) 编辑