Imagine the Alphabet, in this alphabet you have words from A-Z, but suddenly there are several letters A, such as:
A -BCDEFGHI- A -JKL- A -M- A -NOPQ- A
The variable nomes
below, is this alphabet. The variable procurar
will only serve for me to choose which repeated word I want to see in the nomes
variable.
In this template:
string procurar = "cachorro";
string nomes = "vaca cachorro vaca cachorro gato cavalo";
int index = ??
int total = ??
Can anyone help?