Aktualizovat "program.c

This commit is contained in:
Michal Čabra 2019-10-25 10:46:59 +00:00
parent aa94beb639
commit 5dbcaa2fb6

View File

@ -130,8 +130,8 @@ int read_item(struct pizza* item){
i=0;
//printf("Comma %d\n",comma);
//printf("Comma number %d\n",comma_number);
if(comma!=1)return 0;
if(comma_number!=2)return 0;
if(comma>1)return 0;
if(comma_number>2)return 0;
float value = strtof(line2,NULL);
if (value == 0.0F){
return 0;