Say my input is like this:
(( 12345 * 10) - (895 / 5))
Currently, I am using fgets to read in equations one line at a time. One of the equations is like the one above.
Then entire line is read into a character array, then passed to another function. Only problem is, the number 12345 is seen as 1, 2, 3, 4, 5 (ie 5 separate numbers instead of 1).
How can I get it to see that as one big number??? I've tried using fscanf, but dont you have to know what the line will be ahead of time?
Any help would be great! (To yall who seen my last post, sorry about the snappage)...