Hi, Just a quick question about lists.
This seemed a bit elementary at first, but nothing turned up on the web:
How do I get a linked list in C++ with multiple elements.
I need to copy this sort of thing, but using the <list> header:
Is this even possible? If so, can I mix up the types of data? Like have an integer and a string element in the same list.
Thanks,
Austen
This seemed a bit elementary at first, but nothing turned up on the web:
How do I get a linked list in C++ with multiple elements.
I need to copy this sort of thing, but using the <list> header:
Code:
struct linked{
int element1;
int element2;
linked *next;
};
Thanks,
Austen
Comment