cv3
This commit is contained in:
parent
6e146d2094
commit
2852e6831b
@ -59,10 +59,14 @@ int main(){
|
||||
}
|
||||
}
|
||||
else{
|
||||
float cislo = strtof(vstup, NULL);
|
||||
char *endptr;
|
||||
float cislo = strtof(vstup, &endptr);
|
||||
if (endptr == vstup || *endptr != '\n') {
|
||||
printf("bad input\n");
|
||||
return 0;
|
||||
}
|
||||
mystack.values[counter] = cislo;
|
||||
counter++;
|
||||
|
||||
}
|
||||
mystack.size = counter;
|
||||
for(int i =0; i < counter;i++){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user