Posts by Zapello • 51 points
3 posts
-
3
votes1
answer28
viewsA: In the string transp, it was to appear all 4 names, however, only the last one appears
The way you are initiating the array the problem is in using parentheses instead of keys. For this case the correct boot is: string transp[4]={"carro","moto","barco","aviao"}; You can see the code…
-
1
votes1
answer419
viewsA: Doubt with Scientific Notation
The problem is that you print the value "+0.0000E+00 n" for -0 entries. Due to the limitation of the range of values that double can assume in cases of very small negative numbers the value can be…
-
1
votes1
answer90
viewsA: Doubt in the search for sub-string, inside a string
I see two problems: the first is the size of the array you defined as: char name[10000] When the question says that the input can be S(1 |S| 10 5), that is, a string of size 1 up to 100000 (one…