I´m now working on a new project
I´m having a problem,though:
The program receives commands similar to assembly commands
PUSH,POP,MUL and so on.The problem is ,sometimes there´s the command PUSH <number>,where number is an int,but other times i have PUSH <var>,where var is a char *.These commands are written in a file. I´m using fscanf to read the commands.An input file would be like this:
But when i´m reading the commands,i dont know if the argument will be an int or a char*.And,according to the type of argument,i have to call different functions.How can i solve this?