Re: C++ dynamic structures



googlinggoogler@xxxxxxxxxxx wrote:
Could I use a class instead of a structure? whats best? where am I
going wrong?

struct TOKEN
{
string linetoken;
};

Yes: A struct is a class in C++:

class TOKEN
{
public:
string linetoken;
};

--
Dr Jon D Harrop, Flying Frog Consultancy
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists
.