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:

  1. Create a string class with string as its data members and getdata(), display(), string length, string copy as its member functions.

  1. getdata() member function is used to get the values of the string.
  2. display() member function is used to display the string.

  1. string length() member function calculate the length of the string by inspecting its characters one by one till NULL(\0).

  1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!