2019年4月23日

摘要: part2 #ifndef GRAPH_H #define GRAPH_H // 类Graph的声明 class Graph { public: Graph(char ch, int n); // 带有参数的构造函数 void draw(); // 绘制图形 private: char symbol 阅读全文
posted @ 2019-04-23 23:35 比比offical 阅读(61) 评论(0) 推荐(0) 编辑
 

2019年4月2日

摘要: #include #include using namespace std; class Complex {public: Complex(double a,double b); Complex(double c); Complex(Complex &p); void add(Complex t); void show(); double mod(); priva... 阅读全文
posted @ 2019-04-02 23:28 比比offical 阅读(81) 评论(0) 推荐(0) 编辑
 

2019年3月26日

摘要: 1.重载函数 #include<iostream>using namespace std;struct complex{ double real; double imaginary;};int add(int ,int );double add(double ,double );complex ad 阅读全文
posted @ 2019-03-26 22:33 比比offical 阅读(120) 评论(2) 推荐(0) 编辑
 

2019年3月19日

摘要: #include using namespace std; int main() {char a; while(true) { cout>a; if(a=='A') {cout using namespace std; int main() { char a; cout>a; switch(a) { case 'A':{cout #include using na... 阅读全文
posted @ 2019-03-19 22:11 比比offical 阅读(152) 评论(2) 推荐(0) 编辑