2019年6月18日
摘要: #include #include #include #include using namespace std; int main() { string filename1, filename2, newfilename; cout > filename1 >> filename2; cout > newfilename; ... 阅读全文
posted @ 2019-06-18 13:29 流nian逆转 阅读(118) 评论(0) 推荐(0)
  2019年6月3日
摘要: #include #include using namespace std; class MachinePets{ public: MachinePets(const string s):nickname(s){}; string getNickname(); virtual string talk()=0; private:... 阅读全文
posted @ 2019-06-03 23:39 流nian逆转 阅读(87) 评论(0) 推荐(0)
  2019年4月23日
摘要: #ifndef GRAPH_H #define GRAPH_H // 类Graph的声明 class Graph { public: Graph(char ch, int n); // 带有参数的构造函数 void draw(); // 绘制图形 private: char symbol; int... 阅读全文
posted @ 2019-04-23 21:07 流nian逆转 阅读(87) 评论(0) 推荐(0)
  2019年4月2日
摘要: #include using namespace std; class Complex { public: Complex(float r1,float i1); Complex(float r1); void add(Complex &c); void show(); private: float r; float i; }; Complex::Complex(float r1,float i... 阅读全文
posted @ 2019-04-02 20:20 流nian逆转 阅读(75) 评论(0) 推荐(0)
  2019年3月26日
摘要: #include using namespace std; struct complex { double real; double imaginary; }; int add(int ,int ); double add(double ,double ); complex add(complex ,complex ); int main() {int a,b; cout>a>... 阅读全文
posted @ 2019-03-26 23:15 流nian逆转 阅读(84) 评论(1) 推荐(0)
  2019年3月19日
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-03-19 22:52 流nian逆转 阅读(8) 评论(2) 推荐(0)