#include "PQueue.h"
struct arcT;
struct coordT {
double x, y;
};
struct nodeT {
string name;
coordT* coordinates;
PQueue<arcT *> outgoing_arcs;
};
struct arcT {
nodeT* start, end;
int weight;
};
int main(){
nodeT* node = new nodeT; //gives error, there is no constructor
}
私の目的は、新しいnodeT
ヒープを作成することです。エラーは次のとおりです。
エラーC2512:'nodeT':適切なデフォルトコンストラクターが利用できません