?? unweightededge.h
字號:
// edge in an unweighted graph
#ifndef unweightedEdge_
#define unweightedEdge_
#include "edge.h"
#include "myExceptions.h"
using namespace std;
class unweightedEdge : public edge<bool>
{
public:
unweightedEdge(int theV1, int theV2)
{v1 = theV1; v2 = theV2;}
~unweightedEdge() {};
int vertex1() const {return v1;}
int vertex2() const {return v2;}
bool weight() const {throw undefinedMethod("weight");}
private:
int v1,
v2;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -