below is my entire code...i cant think of how to change one part in double calArray(char* formula) to something else instead of using string.h.....could someone please help!!! i'm totally lost!!
if user input 1+2+4-3*5
output is 20
#include <stdio.h>
#include <stdlib.h>
#include...
for (i=1; i<length(formula); i++)
{
strcpy(numString[j], portionofinput-1);
j++;
i++;
lastOp = i;
}
strcpy(numString[j], lastpartofinput);
how to do this instead of using strcpy?
how to get last part of input?
how to get portion of input?
input is: 1+1
should print: 2
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.