dalsi debugging
This commit is contained in:
parent
3df663a097
commit
1b5225eb40
@ -78,15 +78,15 @@ int main(){
|
|||||||
} else if(isdigit(char_value[0]) != 0 ){
|
} else if(isdigit(char_value[0]) != 0 ){
|
||||||
float_value = strtof(char_value, NULL);
|
float_value = strtof(char_value, NULL);
|
||||||
//printf("float value: %f\n",float_value);
|
//printf("float value: %f\n",float_value);
|
||||||
if(float_value == 0){
|
/*if(float_value == 0){
|
||||||
puts("bad input");
|
puts("bad input");
|
||||||
break;
|
break;*/
|
||||||
} else {
|
//} else {
|
||||||
push_stack(&myStack,float_value);
|
push_stack(&myStack,float_value);
|
||||||
print_stack(&myStack);
|
print_stack(&myStack);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
puts("bad input");
|
puts("bad input");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user