|
|
@ -149,5 +149,5 @@ std::istream &operator>>(std::istream &inputStream, const CString &source) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
char CString::operator[](const int i) const { |
|
|
|
char CString::operator[](const int i) const { |
|
|
|
return data[i]; |
|
|
|
return (i < MAX_LENGTH) ? data[i] : '\0'; |
|
|
|
} |
|
|
|
} |