Answered step by step
Verified Expert Solution
Link Copied!

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:

  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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+ (b) Shows that Q agrees with P on Fo.

Answered: 1 week ago