int main()
{
String One;
String Two;
char Monkeys[] = "Monkeys";
One.String(Monkeys);
for (int i = 0; i < One.length(); i++)
{
cout << One[i] << endl;
}
}
Mmm...
error C2512: 'String' : no appropriate default constructor available
error C2512: 'String' : no appropriate default constructor available
error C2274: 'function-style cast' : illegal as right side of '.' operator
warning C4018: '<' : signed/unsigned mismatch
error C2676: binary '[' : 'String' does not define this operator or a conversion to a type acceptable to the predefined operator
Add a construct function with no parameter;
Can't call the cosntruct like line 6;
Should reload operator [];