|
-
November 28th, 2004, 01:44 AM
#1
string
Hi, I'm having some trouble using the string data type I'm very new to c++:
I would like to have a class with a non sataic data member of type string. as defined in #include <string>
Here is the jist of what I'm trying to do:
#include <string>
using namespace std;
class treeNode
{
public:
//lots of methods
private:
string nodeElement = "text";// a string that is in each node of a tree
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|