C Class String Need Help Writing Member Functions Following String Char Int Legnth Char Op Q37209213

C++ :

THIS IS A CLASS STRING AND I JUST NEED HELP WRITING THEMEMBER FUNCTIONS FOR THE FOLLOWING :

-String(char);

-Int legnth();

-char & operator[](const int);

friend bool operator<=(const String &, constString &);

-friend bool operator<(const String &, constString &;)

#ifndef STRING_H#define STRING_H/***********************************************************************your namedateString.hString class definition.************************************************************************/#include <iostream>using namespace std;class String { int size; char * buffer;public: String(); // default constructor String(const String &); // copy constructor String(String &&); // move constructor

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.