Wyo C++ Ch. 13 Notes

Objective #1: Understand various functions that can be used with built-in C++ character arrays.

if (strcmp(string1, string2) = = 0)
{
    cout << "The strings are the same!\n";
}


causes the message to be printed on the screen if the two character arrays, string1 and string2, are equivalent. The strcmp function returns a negative value if the first character array is alphabetically less than the second and it returns a positive value if the second character array is alphabetically less than the first one. It returns a zero if and only if the two character arrays are exactly the same.

Objective #2: Be able to use the apstring class.

Objective #3: Understand advanced object-oriented concepts used in the apstring class.