c++ 创建图 输入输出图

来源:百度知道 编辑:UC知道 时间:2024/09/28 10:29:47
c++ 创建图 输入输出图
要求源代码
最好是用类编写的
template <class vType,int size>
void shortestPath(vType vertex);
这两句什么意思
vType 是什么类型?

vType 就是 class 这里是重载

楼主说的图是数据结构里面的图还是图片?

vType 是类 你放什么类在这里就是什么类
比如你程序里面写 void shortestPath(point vertex);
哪么bType 就是 ponit类