摘要: #include<iostream> #include<fstream> #include<vector> #include"person.hpp" int main() { using namespace std; vector<person> phone_book; person p; whil 阅读全文
posted @ 2021-12-12 15:47 202083290040王博宇 阅读(11) 评论(2) 推荐(0) 编辑
摘要: #include<iostream> #include<typeinfo> class Graph { public: virtual void draw(){std::cout<<"Graph::draw():just as an interface\n";} }; class Rectangle 阅读全文
posted @ 2021-11-27 16:22 202083290040王博宇 阅读(24) 评论(2) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; class vector_int { public: vector_int(); vector_int(int s); vector_int(int s,int x); void print(); int &at(int 阅读全文
posted @ 2021-11-07 15:57 202083290040王博宇 阅读(19) 评论(2) 推荐(0) 编辑
摘要: #include<string> #include<iostream> using namespace std; class info { public: info(string nickname,string contact,string city,int n); info(); void pri 阅读全文
posted @ 2021-10-31 15:36 202083290040王博宇 阅读(14) 评论(2) 推荐(0) 编辑
摘要: complex.hpp #include<iostream>#include"complex.cpp"int main(){ using namespace std; complex c1(1,-10); const complex c2(6.8); complex c3(c1); cout<<"c 阅读全文
posted @ 2021-10-24 19:45 202083290040王博宇 阅读(25) 评论(2) 推荐(0) 编辑