hi every one i have an assignment about linked list and i have a problem in the nodes i have done every thing the header , the main and the impalemention files
my problem is in the comment
#include "header.h"
Node::Node(string s)
{
info = s;
}
void Node::setInfo(string in)
{
info = in;
}
string Node::getInfo()
{
return info;
}
void Node::setNext(Node *& n)
{
next = n;
}
Node *& Node::getNext()
{
return next;
}
Clist::Clist()
{
firstNode=new Node; //here i don't know if it is right in the default
//constructor to make new (the compiler gave me error)
}
void Clist::insertLast(Node*& n)
{
// how could i insert a node in the last just gave me a hint NOT the solution
}
Node *& Clist::get(int )
{
//please gave me a hint what this function do!! it is get something but what it is
}
int Clist::getCount()
{
//how could i return the count of the nodes and i dont have the identifier count
}//this is the immplemention file