Help with lists in c++
Write your question here.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
class node
{
public:
int data()
{
return data_field;
}
node* link()
{
return link_field;
}
private:
int data_field;
node* link_field
};
|
Does anyone know how I can write a code to print all the integers in the list?!
Thanks for your help.
Topic archived. No new replies allowed.