摘要: 由于前一天搬行李特别累,所以前一天睡的特别早,第二天五点多就起床了,起床后去外面走了会,回来吃了个饭,然后就开始在b站上找java视频看,下午和高中同学一起出去玩了。 阅读全文
posted @ 2023-07-01 08:37 Code13 阅读(14) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 #include <fstream> 3 #include <string> 4 5 int main() { 6 std::ifstream inputFile("D://article.txt"); 7 8 if (!inputFile) { 9 阅读全文
posted @ 2023-05-18 23:37 Code13 阅读(90) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 #include <iomanip> 3 using namespace std; 4 class matrix{ 5 private: 6 int row,column; 7 int **mat; 8 public: 9 matrix(const m 阅读全文
posted @ 2023-05-16 21:18 Code13 阅读(47) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 using namespace std; 3 template<class T> 4 void swapData(T& a, T& b) 5 { 6 T t = a; 7 a = b; 8 b = t; 9 } 10 11 template<class 阅读全文
posted @ 2023-05-15 20:28 Code13 阅读(63) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 4 template<class T> 5 class mypair { 6 T a, b; 7 public: 8 mypair(T first, T second) 9 { 10 a = first; 1 阅读全文
posted @ 2023-05-12 22:30 Code13 阅读(25) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 class zhong 4 { 5 private: 6 int shi; 7 int fen; 8 int miao; 9 public: 10 zhong operator++() 11 { 12 mia 阅读全文
posted @ 2023-05-11 21:47 Code13 阅读(46) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 class Shape 4 { 5 public: 6 Shape(){} 7 ~Shape(){} 8 virtual float getArea() {} 9 }; 10 class Circle:pub 阅读全文
posted @ 2023-05-10 18:45 Code13 阅读(38) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 class BaseClass 4 { 5 public: 6 virtual void fn1(); 7 void fn2 (); 8 }; 9 void BaseClass::fn1() 10 { 11 阅读全文
posted @ 2023-05-10 18:44 Code13 阅读(43) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 class Shape 4 { 5 public: 6 Shape(){} 7 ~Shape(){} 8 virtual float getArea()=0; 9 virtual float getPerim 阅读全文
posted @ 2023-05-08 22:23 Code13 阅读(57) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 class Mammal 4 { 5 public: 6 Mammal() 7 { 8 cout<<"Mammal constructor...\n"; 9 } 10 ~Mammal() 11 { 12 co 阅读全文
posted @ 2023-05-08 22:22 Code13 阅读(106) 评论(0) 推荐(0)