actually it is the add function of my real thing want to do,
my whole function included Node are actually like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef NODE_H
#define NODE_H
class Node
{
public:
// data
int order;
int number;
string name;
int age;
int lib_id;
//pointer to next
Node* next;
};
#endif
the function run such like that,but if there has no running problem at all,however it cannot load data after closing screen,is there have any problems contains from my codes???