Intendi che ad ogni carattere corrisponde un indice del vettore?

fai qualche esempio