looks like your 'eqlength' is a bigger value than the number of elements in your 'equation' string.
as an aside, why put 'at(0+i)'? rather than just 'at(i)'?
edit: i have a feeling that this:
for (int i = 0; i <= eqlength; i++)
should be:
for (int i = 0; i < eqlength; i++)
Last edited on
Thanks mutexe! Your edit fixed the issue.
And I only put the at(0+1) in a desperate attempt to solve the issue >_<
Thanks again!
SOLVED
no worries. just remember if you've defined an array with ten elements for example, you access the elements from 0 to 9. element 10 does not exist.