Set maximum numbers for nodes
Hello Fellow c++ programmers
"The maximum number of nodes in the list is 100"
How do I set this ?
1 2 3 4 5 6 7 8 9 10 11
|
class LinkedList
{
private:
struct node {
int data;
node* next;
};
node* head;
node* curr;
node* temp;
};
| |
a static int?
Topic archived. No new replies allowed.