在结构体里放 string 是不行的

比如这样:

/* the struct of the node by adjacency-list representation */

typedef struct

{

        /* the name of node */

        string nodename;



        /* the list of each node */

        vector< string > nodelist;



        /* the begin probability of the node */

        vector< float > nodeprob;



} nbnode;

你可能感兴趣的:(String)