Week 7 Lecture Summary for CSC 309

These notes are not intended to be complete. They serve as an outline to the class and as a supplement to the text.


C++ String Class


Dictionary Program

Write a program that gets an English word from the user and outputs the corresponding word(s) in spanish

The following file contains a mapping of English words to Spanish words.

engspan.txt

Two user defined classes will be used in solving this problem. Their relationship is depicted as follows.


Operator Overloading


Rules and Guidelines


Friend Functions


Overloading Input and Output Operators.


Overloading the Index Operator


Overloading Operators for Class IntLinkedList

==  returns true if two lists are equal, identical elements
!=  returns true if two list are not equal
<< outputs the list.
>> adds an integer to the back of the list.