STL lists
| Fri, 2007-11-16 02:11 | |
|
|
Is anyone familiar with the STL (Standard Template Library) in C++? For example, how would you impliment a node with two strings such as this:
#include <list> // list class-template definition
using namespace std;
class Node
{
CString string1;
CString string2;
}
list<Node> MyList;
I would I put nodes into this list? |






Forum posts: 1142
something like this I assume?
though, you should declare the members of the node as public, and write a constructor for it also (but I think you will get a default constructor that fit the above)