Write a driver program for the given class: ------------------------------------
ID: 3620307 • Letter: W
Question
Write a driver program for the given class:-----------------------------------------------------------
class String1 {
private:
char str[80];
public:
// Constructors
String1();
String1(char *);
// Fill a character buffer argument
void GetString(char *);
// Concatenation Operators
String1 operator+(String1 &);
String1 operator+(char *);
friend String1 operator+(char *, String1 &);
// Assignment Operators
// would work without this cuz we do not have
// any pointer members but do anyway for practice
String1 operator=(String1 &);
String1 operator=(char *);
// Console Stream Output
friend ostream &operator<<(ostream &, const String1 &);
};
---------------------------------------------------------
The parts I have marked in red are the parts I'm having the trouble with... For the life of me, I just cannot seem to get char-anything working tonight.
The parts I have marked in red are the parts I'm having the trouble with... For the life of me, I just cannot seem to get char-anything working tonight.