The function "Frequency" doesn't return anything. This:
Code:
file2<<Frequency(alphabet[p], num, a) ;
Is an error.

Viggy