hi
if i have a list of numbers , say 2345678
and want to add up the odd position digits
ie 2+4+6+8
how can i do this ?
i tried it with nums[20]
and using atoi to convert the type
but it seems i can't do things like
sum=atoi(nums[0]) + atoi(nums[1]);
can someone plz help me~~~~