Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C++ Programming

String - Finding a substring

 

Functions

String - Finding a substring

1. [ C++ ] indexOf


Big

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.