A
ahdz10
class string
{ private:
.....
public:
//Constructor
//overloading constructor
//Destructor
friend function for accepting input
friend fuction for display output
}
a constructor which will initialize the string as the first line and
size with corresponding string length.
Another overloading constructor which will accept a string and
initialize it and its length to the class
Write a friend function which will read a string for the objext from
the keyboard
{ private:
.....
public:
//Constructor
//overloading constructor
//Destructor
friend function for accepting input
friend fuction for display output
}
a constructor which will initialize the string as the first line and
size with corresponding string length.
Another overloading constructor which will accept a string and
initialize it and its length to the class
Write a friend function which will read a string for the objext from
the keyboard