From: fckool on
I have to calculate the entropy and information of each symbol, I do it later on with two formulas.

but for that I have to have the same number of symbols in the files. txt
From: fckool on
forget it... your code is correct because when you remove the corresponding value on occur vetor you automatically have the correct value on the Prob vector.

I have other question.. (sorry)

I have a for cycle where a enter 2 values manually de Simbs and their Probably .. I want do a condition that don't let me introduce a value bigger than 1 like its Sum. when it happens I want the user introduce again the value..

it's possible?