This document defines a String class with member functions for constructing, modifying, accessing elements of strings, reserving memory, and comparing strings. It also defines non-member operator overloading functions for concatenation, input/output, and comparisons. The document provides an implementation of the String class methods and a test driver program to demonstrate the class functionality.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
88 views5 pages
CSC161 Exam 1 Listings
This document defines a String class with member functions for constructing, modifying, accessing elements of strings, reserving memory, and comparing strings. It also defines non-member operator overloading functions for concatenation, input/output, and comparisons. The document provides an implementation of the String class methods and a test driver program to demonstrate the class functionality.