Posts by user3741052 • 87 points
4 posts
-
0
votes1
answer3158
viewsQ: Unknown error type name
I’m trying to pass a typedef struct as a parameter to a function, but it gives the error: "Bib. h:6:13: error: Unknown type name 'matrix'" Here is the code: #include "bib.h" typedef struct { int…
casked user3741052 87 -
2
votes2
answers394
viewsQ: Function giving wrong values
For some reason, my function of calculating distances is sometimes giving wrong values. Not only that, but the values seem to be from memory addresses (because they are very large), but I’m not sure…
casked user3741052 87 -
1
votes1
answer93
viewsQ: Error when I try to call a function
I need to calculate the distance between two points, but when I call the function that does this (calculates the distance), it gives the error: "subscripted value is neither array nor Pointer…
casked user3741052 87 -
3
votes3
answers272
viewsQ: Incompatible types?
I am passing 3 parameters: a vector with the name of 30 cities, one with the x coordinates of the respective cities and the other with the y coordinates. I need to print on the screen the cities…