Question: 1/ AIM: To write a c++ program to perform operation on string class. PSEUDOCODE: Create a string class with string as its data members and
1/ AIM:
To write a c++ program to perform operation on string class.
PSEUDOCODE:
- Create a string class with string as its data members and getdata(), display(), string length, string copy as its member functions.
- getdata() member function is used to get the values of the string.
- display() member function is used to display the string.
- string length() member function calculate the length of the string by inspecting its characters one by one till NULL(\0).
- string copy() member function copies the string value which is passed as an argument to the invoking object.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
