Thread: indexof
View Single Post
Old Nov 9th, 2007, 9:24 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: indexof

Ahhhh. You can get the character (or substring) at any position by using substr. You can search for a character (or substring) using inStr. Again, I'd recommend you look at the methods that are members of the class. These people set out to write things that are generally useful. They might not choose to restrict them unduly, or name them what one expects.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote