I thought it was the ^ operator... but it's giving me weird results. I need to parse consecutive integers in an array to be one whole number.
So 234 would get input as [2|3|4] in an array
So I count digits, so the number = 2*10^2 + 3*10^1 + 4*10^0 = 234
which works right AFAIK, and its not an operator precedence thing because I've confirmed values with cout. It's just that the power doesn't work right. Any ideas?
Now, why I'm spending time on this when the other 98% of my program is completely hosed, I don't know but this is the only way to parse the input into a single number that I can think of.
So 234 would get input as [2|3|4] in an array
So I count digits, so the number = 2*10^2 + 3*10^1 + 4*10^0 = 234
which works right AFAIK, and its not an operator precedence thing because I've confirmed values with cout. It's just that the power doesn't work right. Any ideas?
Now, why I'm spending time on this when the other 98% of my program is completely hosed, I don't know but this is the only way to parse the input into a single number that I can think of.