druhy upload
This commit is contained in:
		
							parent
							
								
									abe4009ef8
								
							
						
					
					
						commit
						643165b818
					
				| @ -1,5 +1,44 @@ | |||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
|  | #include <string.h> | ||||||
|  | #define LINESIZE 100 | ||||||
|  | 
 | ||||||
|  | struct Pizza { | ||||||
|  | 	float prize; | ||||||
|  | 	char name[LINESIZE]; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
|  | int nacitaj(struct Pizza* polozka){ | ||||||
|  | 	return 0; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | int matches(heap, needle){ | ||||||
|  | 	return 0; | ||||||
|  | 	 | ||||||
|  | } | ||||||
|  | char r[LINESIZE]; | ||||||
|  | char hacker_script(char c){ | ||||||
|  | 	if (c == '5'){ | ||||||
|  | 		r == 'S'; | ||||||
|  | 	} | ||||||
|  | 	return r; | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| int main (){ | int main (){ | ||||||
| return 0; | 	char search_string[LINESIZE] = "Ostiepkova"; | ||||||
|  | 	while(1){ | ||||||
|  | 		char *r = fgets(line, LINESIZE, stdin); | ||||||
|  | 		if (r == NULL){ | ||||||
|  | 			break; | ||||||
|  | 			}	 | ||||||
|  | 		struct Pizza pizza; | ||||||
|  | 		memset(line, 0, sizeof(struct Pizza)); | ||||||
|  | 		strcpy(pizz->name, line); | ||||||
|  | 		if (matches(search_string, line)){ | ||||||
|  | 			printf("%s", pizza->name) | ||||||
|  | 			} | ||||||
|  | 		 | ||||||
|  | 		} | ||||||
|  | 		 | ||||||
|  | 	 | ||||||
|  | 	return 0; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user