C, Question About My program. Just Starting
I am making a program for my c class.
sample run is:
~~~ CALCULATOR ~~~
> # multiply
> # print z to get 9/5
> # add to get 3
> # quit
~~~ GOODBYE ~~~
ok, this is a little hard to explain. This program is like a command prompt, it uses ">" and then the user enters data.
since i just started, in am in the beginning of it. i need to prompt the user for input with ">" My teacher wants us to use pointers and functions. (no arrays and strings).
I am not sure if i am doing this right, and i stuck already.. :(
This is a function below:
Calling Function with main...
void input (void)
} while (uInput != 'q');
int main (void)
printf("~~~ CALCULATOR ~~~\n");
Whatever I entered are random for now...
I am getting the output as:
Why am i getting "> >" ? help me please.