cv3
This commit is contained in:
parent
81388f4343
commit
09c995f5ea
@ -17,6 +17,9 @@ int main(){
|
|||||||
int counter = 0;
|
int counter = 0;
|
||||||
while(1){
|
while(1){
|
||||||
fgets(vstup, STACK_SIZE, stdin);
|
fgets(vstup, STACK_SIZE, stdin);
|
||||||
|
if(vstup[0] == '\n'){
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(vstup[0] == '-' || vstup[0] == '+' || vstup[0] == '*' || vstup[0] == '/'){
|
if(vstup[0] == '-' || vstup[0] == '+' || vstup[0] == '*' || vstup[0] == '/'){
|
||||||
if(vstup[0] == '-'){
|
if(vstup[0] == '-'){
|
||||||
mystack.values[0] = mystack.values[0] - mystack.values[1];
|
mystack.values[0] = mystack.values[0] - mystack.values[1];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user