part2: #ifndef GRAPH_H#define GRAPH_H class Graph {public: Graph(char ch, int n); void draw();private: char symbol; int size;}; #endif Graph.h #includ ...
分类:
其他好文 时间:
2019-04-24 00:35:57
阅读次数:
156
part2 #ifndef GRAPH_H #define GRAPH_H // 类Graph的声明 class Graph { public: Graph(char ch, int n); // 带有参数的构造函数 void draw(); // 绘制图形 private: char symbol ...
分类:
其他好文 时间:
2019-04-24 00:12:37
阅读次数:
141
#ifndef GRAPH_H #define GRAPH_H class Graph { public: Graph(char ch, int n); void draw(); private: char symbol; int size; }; #endif #include "graph.h" ...
分类:
其他好文 时间:
2019-04-24 00:01:05
阅读次数:
169
2. #include "graph.h" #include <iostream> using namespace std; Graph::Graph(char ch, int n): symbol(ch), size(n) { } void Graph::draw() { int i,j,k; f ...
分类:
其他好文 时间:
2019-04-23 23:54:50
阅读次数:
241
2. // 类graph的实现 #include "graph.h" #include <iostream> using namespace std; // 带参数的构造函数的实现 Graph::Graph(char ch, int n): symbol(ch), size(n) { } // 成员 ...
分类:
其他好文 时间:
2019-04-23 00:17:05
阅读次数:
140
1.graph类 #ifndef GRAPH_H #define GRAPH_H // 类Graph的声明 class Graph { public: Graph(char ch, int n); // 带有参数的构造函数 void draw(); // 绘制图形 private: char sym ...
分类:
编程语言 时间:
2019-04-22 18:16:22
阅读次数:
156
Part 2 #ifndef GRAPH_H #define GRAPH_H class Graph { public: Graph(char ch, int n); void draw(); private: char symbol; int size; }; #endif #include "g ...
分类:
编程语言 时间:
2019-04-22 00:42:49
阅读次数:
154
graph项目: graph.h #ifndef GRAPH_H #define GRAPH_H class Graph { public: Graph(char ch,int n); void draw(); private: char symbol; int size; }; #endif gr ...
分类:
其他好文 时间:
2019-04-21 17:30:37
阅读次数:
135
// 类graph的实现 #include "graph.h" #include <iostream> using namespace std; // 带参数的构造函数的实现 Graph::Graph(char ch, int n): symbol(ch), size(n) { } // 成员函数d ...
分类:
其他好文 时间:
2019-04-21 17:23:12
阅读次数:
105
part2 graph.h #ifndef GRAPH_H#define GRAPH_H// 类Graph的声明 class Graph { public: Graph(char ch, int n); // 带有参数的构造函数 void draw(); // 绘制图形 private: char ...
分类:
编程语言 时间:
2019-04-21 15:56:44
阅读次数:
129