cv3
This commit is contained in:
parent
d17535a455
commit
cc62da2362
@ -15,9 +15,12 @@ int main(){
|
||||
memset(&mystack,0,sizeof(struct stack));
|
||||
char vstup[STACK_SIZE];
|
||||
int counter = 0;
|
||||
char str[9]="no input";
|
||||
char *istr;
|
||||
while(1){
|
||||
fgets(vstup, STACK_SIZE, stdin);
|
||||
if(vstup[0] == '\n'){
|
||||
istr = strstr(str,vstup);
|
||||
if(vstup[0] == '\n' || istr != NULL){
|
||||
break;
|
||||
}
|
||||
if(vstup[0] == '-' || vstup[0] == '+' || vstup[0] == '*' || vstup[0] == '/'){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user