No, just in a very basic sense... we're not supposed to be using containers, templates, etc., just the basic pointer operations to create a node, add a node to the list, delete a node, count the number of nodes, etc.
Main Topics
Browse All TopicsDoes anyone know of any good online resources that explain C++ linked lists, stacks, queues, pointers, etc?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
How about:
http://www.augustana.ab.ca
Hope this is not an academic assignment. If so dis regard the comment.
ABdij
For explanation of what the data structures are all about, try this link:
http://hissa.nist.gov/dads
you should find some help there.
For general C++ help, tutorials, etc. (e.g. about pointers), try this:
http://www.cetus-links.org
> Hope this is not an academic assignment
You are allowed to provide some assistance with academic assignments. Pointing to information sources, is allowed, I think.
#include <iostream.h>
struct aNode
{
int value;
aNode *next;
};
typedef aNode Node;
class List
{
protected:
Node *head;
public:
// Constructors
List(): head(0) {}
// Destructor
~List();
// Methods
bool insert(int arg);
unsigned long length() const;
bool pop();
// Friend functions
friend ostream& operator <<(ostream &ostr,const List &lst);
};
List::~List()
{
Node *temp=0;
while ( head ) {
temp=head->next;
delete head;
head=temp;
}
}
bool List::insert(int arg)
{
Node *temp=0;
temp=new Node;
if ( !temp ) return false;
temp->value=arg;
temp->next=head; head=temp;
return true;
}
unsigned long List::length() const
{
unsigned long nNodes=0UL;
for ( Node *temp=head ; temp ; temp=temp->next ) ++nNodes;
return nNodes;
}
bool List::pop()
{
if ( !head ) return false;
Node *temp=head->next;
delete head;
head=temp;
return true;
}
ostream& operator <<(ostream &ostr,const List &lst)
{
if ( !lst.head ) return ostr;
ostr<<lst.head->value;
for ( Node *temp=lst.head->next ; temp ; temp=temp->next )
ostr<<' '<<temp->value;
return ostr;
}
int main()
{
List z;
if ( !z.insert(89) ) return 0;
if ( !z.insert(900) ) return 0;
if ( !z.insert(-8765) ) return 0;
cout<<z<<endl;
z.pop();
cout<<z<<endl;
cout<<"Actual length is"; cout<<z.length()<<endl;
return 0;
}
Your question is still open today. Have you been helped so that you may close this question or is more needed? Due to the age of this question, and some of the conversions we've undergone since that time, you'll notice that the comments are not in date order, so if you plan to choose a comment as the answer to grade and close, you may wish to note that. If you require special handling of this question, a zero point question in the Community Support topic area with a link to this question and your desires (delete/refund) will accomplish that.
With the volumes of new activity, it is unlikely that people will find this question at this point, due to its ageif you were waiting to get new information or current attention. If more is needed, your comment will generate a message to the experts who participated previously here with you, and hopefully then resume the process.
Thank you, your responsinveness is definitely appreciated.
Asta
I think you forgot this question. Please grade the answer(s) given or ask back if there is more information needed. Please feel free to delete the question if there wasn't any help given. You will get your points back and if still interested could repost your question. I will ask CS to close this question if there is no more feedback.
Please do not accept this comment as an answer!
======
Werner
Per recommendation (Q20253267) comment force/accepted by
Netminder
Community Support Moderator
Experts Exchange
jasonclarke: Points for you at http://www.experts-exchang
Business Accounts
Answer for Membership
by: kozmo_jonnyPosted on 2000-09-19 at 08:18:38ID: 4358078
you mean STL ?