Monday, March 8, 2010

Constructors

If you want to declare 'name' as a string, you would

do this:
std::string name;
instead of this:
std::string name();
because the second declaration declares a function.

No comments:

Post a Comment