在结构体里放 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;

posted @ 2011-03-16 15:03  lxgeek  阅读(2928)  评论(2编辑  收藏  举报