i want to creat a sparse table such that it contain a student number, the class he took and the grade he got, i dont now how to inter the data to the table and how to print it out from the table
CODE
using namespace std;
class node
{
public:
int studentNumber;
int classNumber;
char grade;
node *nextStudent;
node *nextClass;
node()
{
nextStudent = NULL;
nextClass=NULL;
}
node(int x ,int y ,node *next1 = NULL , node *next2=NULL)
{
studentNumber = x;
classNumber=y;
nextStudent = next1;
nextClass=next2;
}
};
class list
{
public:
list()
{
head = tail = 0;
}
private:
node *head, *tail;
};
void main()
{
} :rolleyes: :rolleyes: