Hi !!!!!
I have to filter the input for a geniric string with some operations.
for example :
char buf [] ="25+2;44+1;8-2."
char op1[20];
char op2[20];
char operazione[20];
char en[20];//in this varible i put ";" for the next operation , I put "." becouse the operations are end
sscanf(buf,"%[0-9] %[+-] %[0-9] %[;.]",op1,operazione,op2,en );
In this way I can filter 25+2; but I don't know how to filter the rest of the string.
I can't iterate for a generic string with a lot of operations.
Help me please also with other methods.