Aktualizovat „du4/program.c“
This commit is contained in:
		
							parent
							
								
									e4e2bda6a7
								
							
						
					
					
						commit
						fe9c49688e
					
				| @ -61,10 +61,11 @@ int main() | ||||
|     	char *new_str = compactString(str[i],strlen(str[i])); | ||||
|     	double first =-5,second =-5,res=-5; | ||||
|     	char c='E'; | ||||
|     	sscanf(new_str,"%lf%c%lf%*[=]%lf",&first,&c,&second,&res); | ||||
|       	char ravno[3]; | ||||
|     	sscanf(new_str,"%lf%c%lf%s%lf",&first,&c,&second,ravno,&res); | ||||
|      | ||||
|      | ||||
|     	if(c=='E'||first==-5||second==-5||res==-5||(c!=43&&c!=42&&c!=45&&c!=47)){ | ||||
|     	if(c=='E'||first==-5||second==-5||res==-5||(c!=43&&c!=42&&c!=45&&c!=47||(strlen(ravno)==1&&ravno[0]=='=')){ | ||||
|     	    printf("CHYBA\n"); | ||||
|           	continue; | ||||
|     	} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user