* The class String1030 is for the students to practice implementing
* more class functions and making sure that their implementation
* is reasonable.
* It requires some skill in using arrays and overloading operators.
* Note that the sentinel value that MUST be part of the storage for our
* strings is '\0'. That is not special, it is just a way to tell future
* readers that we know what we are doing. We could just as well use the
* digit 0, but that can be confusing.
* If you do not understand any of this, come see me or the TA.
// The constructor. The "0" is the digit 0 NOT a
// character. It is used to let us know that
// nothing is being passed to the constructor.
//This next is a "copy" constructor. Remember that
//we have to create new storage and then copy
//the array content. We must not just copy the pointer.
String1030(const String1030& oldstring);
// The destructor because we are allocating memory.
// We must deallocate it when the object goes out of
// scope (is destroyed).
String1030& operator=(const String1030& right);
// Allows to change the element at a certain index.
char& operator(int index);
void setSize(int newsize);
// Replace the existing string with a new one.
void setString(constchar *carray);
Lines 14, 20, 42, all in the first file, on the top. I am using visual studios 2012
Also intellisense says for the same lines(14,20,42) IntelliSense: the object has type qualifiers that are not compatible with the member function
object type is: const String1030 \\wi\Desktop\Prog10\Prog10\String1030.cpp 41 6 Prog10