Define a class Dstring having following data members-
Class name: Dstring
Data members:
char *str;
Function members:
Dstring(char *s) : Allocates memory dynamically for str and initializes it with s.
changecase() : reverses case of each alphabet present in the string
Insertatloc( char*substr, intloc) : Inserts a substring substr at location loc in str
~Dstring() : Destructor to deallocate memory.
Model the above class definition and write a menu driven program to display all operations.
Please correct this code for me
Attachments:
Answers
Answered by
0
we did not have that topix
yash08082001:
It is for board practical
Similar questions