C++:Find Position

From Progzoo
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]