the additem code is as follows:
Code:void linklist::additem(int d)
{
link* newlink = new link;
newlink->data = d;
newlink->next = first;
first = newlink;
}
Printable View
the additem code is as follows:
Code:void linklist::additem(int d)
{
link* newlink = new link;
newlink->data = d;
newlink->next = first;
first = newlink;
}
I assume you didn't put "using namespace std;" in your header file (and you shouldn't!), so you should change ifstream to std::ifstream (all the stream classes are in the std namespace).Quote:
Originally Posted by Nasty2