String(const char *const);
String(const String &);
char * itsstring;
unsigned short itslen;
cout << "Making String Class" << endl;
itsstring = new char[len+1];
itsstring[i] = "\0"; //ERROR
itsstring[len] = "\0"; //ERROR
cout << "\tString(int) constructor" << endl;
In the previous piece of code, my compier comes up with an error on the two lines with the ERROR comments.
It says "invalid conversion from `const char*' to `char' ".
if i try using the indirection operator to access the value stored at where the pointer points to on the free store then it comes up with a different error.
It then says "invalid type argument of `unary *'".
Please could someone help me