摘要: task3_1.cpp #include<iostream> #include<fstream> #include<array> #define N 5 int main() { using namespace std; array<int, N>x{ 97,98,99,100,101 }; ofs 阅读全文
posted @ 2022-12-06 19:36 samapoketto 阅读(10) 评论(0) 推荐(0) 编辑
摘要: task4 pets.h #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: string nickname; MachinePets() {} Machi 阅读全文
posted @ 2022-11-29 21:29 samapoketto 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验五 vectorint.h #pragma once #include<iostream> using namespace std; class vectorInt { public: int s, * p; vectorInt(int m) { p = new int [m]; s = m; 阅读全文
posted @ 2022-11-08 20:10 samapoketto 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class Info { public: string nickname, contact, city; int n; In 阅读全文
posted @ 2022-10-25 22:33 samapoketto 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 4 #pragma once #include<iostream> #include<iomanip> #include<complex> using namespace std; class Complex { public: double re, im, ab; Complex(); Compl 阅读全文
posted @ 2022-10-19 14:39 samapoketto 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 实验任务1-1 #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{"A B C"}; string s3{s2}; string 阅读全文
posted @ 2022-09-29 22:07 samapoketto 阅读(12) 评论(0) 推荐(0) 编辑