Update 'cv3/program.c'
This commit is contained in:
		
							parent
							
								
									800c6fe9e8
								
							
						
					
					
						commit
						e1914e11e5
					
				| @ -24,6 +24,7 @@ int main(void) { | |||||||
|         str[strlen(str) - 1] = 0; |         str[strlen(str) - 1] = 0; | ||||||
|         // if number
 |         // if number
 | ||||||
|         if(strlen(str) > 1 || (str[0] >= '0' && str[0] <= '9')) { |         if(strlen(str) > 1 || (str[0] >= '0' && str[0] <= '9')) { | ||||||
|  |             my_exit(p_stack->size >= STACK_SIZE, "full stack"); | ||||||
|             my_exit(str[0] == '.', "bad input"); |             my_exit(str[0] == '.', "bad input"); | ||||||
|             float res = 0.f; |             float res = 0.f; | ||||||
|             int dots = 0; |             int dots = 0; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user