Default Constructor help

For my default constructor I need to set an array of strings to null and the size variable to 0.

Here is my code for that
DynamicStringArray::DynamicStringArray()
{
*DynamicArray[]=NULL;
size=0;
}

When I try and compile it I get an "expected primary expression before ']' token" error.
Help please?
PS I will have more posts to come.
You write [] only for the declaration, else it thinks you want the value of a cell, but you wrote no number in between the brackets.

Also there should be no need/urge to write a class that manages Strings if that is what you're doing. See http://www.cplusplus.com/reference/string/string/
Last edited on
Topic archived. No new replies allowed.