Sample Assignment: Your String Class
|
|
Implement and test the string class discussed in Section 4.5 of the textbook, including:
Whenever possible, use functions from the #include <cstring> facility (such as strcpy, strcat and so on).
Follow our style guide religiously. Do your work in a separate directory called hw-string that contains only the work for this assignment.
After you implement each piece, copy your header and cxx files to restore point files (with names such as mystring.h.004 and mystring.cxx.004). You'll need to submit all of these restore point files.
Note: In class, I will show you one major difference between your implementation and the typical implementation of the C++ standard string class. But don't worry about this difference for your work.
tar -cvf hw-string.tar hw-stringThis creates a file called hw-string.tar that you can submit to webct no later than 11:55pm on Friday, Sep 17.