if there is a code like this :
++ndigit[c-'0'] is that the same with :Code:int c, ndigit; if (c >= '0' && c <= '9') ++ndigit[c-'0'];
ndigit = ndigit + ndigit[c-'0']?
sorry if this is a stupid question, I'm just a newbie
if full program is needed (a short program this is) to answer my question, I will put it online. Just tell me so.