Update 'cv3/program.c'
This commit is contained in:
parent
047a97232f
commit
6935776921
@ -87,6 +87,7 @@ int main() {
|
|||||||
|
|
||||||
float value;
|
float value;
|
||||||
|
|
||||||
|
//strchr aj strrchr hľadá prvý výskyt znaku určeného znakom v reťazci, na ktorý reťazec ukazuje.
|
||||||
if (sscanf(input, "%f", &value) == 1 && strchr(input, '.') == strrchr(input, '.')) {
|
if (sscanf(input, "%f", &value) == 1 && strchr(input, '.') == strrchr(input, '.')) {
|
||||||
if (!push(&stack, value)) {
|
if (!push(&stack, value)) {
|
||||||
printf("bad input\n");
|
printf("bad input\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user