//********************************************************************************* // ICS 211 Data Structures 2001 Spring Semester // Project : HW 3 // // File : hw3.cpp // Date : 16/04/2001 // Author: Seniz Demir // // Description: Operator overloading processes on String objects // // ------------------------------------------------------------------------------- // Copyright (C) 2001 Yeditepe University // Information and Computer Science Department // All rights reserved // ------------------------------------------------------------------------------- #include #include #include #include //------------------------------------------------------------------------------- // String // Implementation Notes: Implementation of String class //------------------------------------------------------------------------------- class String { public: String(const char *s) ; ~String(); const String &operator=(const String &);// comparison const String &operator+=(const String &);//concatenation char operator[](int number ) const ;//length void operator*(const String &);//reverse void setString(const char *string2); void showString(); int getlength(); String &operator^(int number); private: int length;//length of the string char *sPtr;//string }; //!!!!!!!!!!!!!! //**************************************************************** // You will implement the following function: void String::operator*(const String &s)//reverse { } void String::showString()//prints the string { cout<