C++:Find Position

From Progzoo
Revision as of 23:52, 13 April 2008 by Andr3w (talk | contribs) (indexOf)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

find

Show the position of the first "n".

You get -1 if "n" does not appear. Otherwise you get the character position counting from 0. In Kenya the n is in position 2.

[Font] [Default] [Show] [Resize] [History] [Profile]