refresh
This commit is contained in:
		
							parent
							
								
									0d6a072559
								
							
						
					
					
						commit
						acbc919f4f
					
				| @ -7,10 +7,13 @@ int read_number (double *num) { | |||||||
|     if (!fgets(buffer, sizeof(buffer), stdin)) { //если fgets не смог считать строку
 |     if (!fgets(buffer, sizeof(buffer), stdin)) { //если fgets не смог считать строку
 | ||||||
|         return 0; |         return 0; | ||||||
|     } |     } | ||||||
|     if (sscanf) |  | ||||||
| 
 | 
 | ||||||
|  |     if (sscanf(buffer, "%lf", num) ! = 1) { | ||||||
|  |         return 0; | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| int main() { | int main() { | ||||||
|     return 0; |     return 0; | ||||||
| } | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user