[Exercise 3]

Extend the class "String"

description | hints | solution | discussion
list of all exercises

In the files String.h (*) and String.cpp (*) you find the class String as discussed in the lecture. Extend the string class by

a)an output operator
b)all relational operators

Then replace all char * Variables in the program of exercise 1 which are used as strings by variables of type String.

Additional hints

Solution:

Discussion of solution (*)