Posts by Pedro Henrique • 46 points
3 posts
-
0
votes1
answer22
viewsA: Unexpected exit on my variable!
You’re doing a whole division. By default, C assumes that the division between two integers will return an integer independent of the numbers after the comma. To solve this error, the simplest way,…
canswered Pedro Henrique 46 -
2
votes1
answer59
viewsA: Can you improve my code?
welcome to Stackoverflow. Assuming you really are a beginner in programming, your code is relatively good. I don’t know where you are or why you joined the program (technical school or college, for…
-
1
votes1
answer1383
viewsA: Read only one line in the file
I think I’d better use the fscanf. Well, for text files, there are two functions especially to take data from within the file (fscanf()) and to put data into a file (fprintf()). The structure of…