2/8/00
COM1100 Winter2000 Yuhong Yin
9
From the string class:
nIf s if of type string:
n s.length()
nFind out the actual length of the string s
ns.substr(pos, num)
nGet the substring of s consisting of num characters starting at position pos
ns[pos]
nGet the character at position pos in s
n s1 == s2
nReturn true if and only if the two strings are equal
n
n