怎么会出问题?
while(in_stream>>next)
{
if(next == '\n')
{
s = new ChainNode<T>;
in_stream>>next;
s->class_order = next;
in_stream>>next;
s->class_relation = next;
in_stream>>next;
s->point = next;
}
link->next = s;
link = s;
}
1 2 2
2 0 1
3 0 4
4 2 1
5 7 1
6 7 6
7 2 2 这是文件里的内容