hello all , i want to know how it is possible to tokenize a string such as
Y = 5X^2 + 6X^-5 + 12X^4-7X^6 so that the algorithm doesn't affect negative numbers i mean :
if i use strtok(string"+-") this would simply wipe out any - or + sign it finds! so needless to say , i can not have the negative powers such as -2 in the above given string .
how should i go about it ?
thanks in advance