using structs in a STL list c++
问题 I'm new to using c++ and I don't really know how to use the STL lists. I'm making a graph of intersections of city streets. Here's my structs/header files: global header #ifndef GLOBAL_H #define GLOBAL_H typedef struct Vertex_ vertex; typedef struct Edge_ ege; #endif vertex header #ifndef VERTEX_H #define VERTEX_H #include<list> #include "global.h" #include "edgelist.h" struct Vertex_{ int xsect; int danger; char xstreet[25]; list<Edge_> EdgeList; struct Vertex_ *next; struct Vertex_ *prev; }