Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started