Posts by André Sanson • 141 points
3 posts
-
0
votes1
answer267
viewsA: invalid type argument of unary '*' (have 'double') in C
You are multiplying a double inside the sizeof. the correct is: size of the data type * how many spaces in memory you want. malloc(sizeof(double) * numvert);
canswered André Sanson 141 -
0
votes1
answer32
viewsA: Problem with memory allocation for the second time
The variable q is not a pointer to Polygon struct. By analyzing your code you have head(cuca) but are not using pointers anywhere in the code. In my mind it should be something like this Poligono *p…
canswered André Sanson 141 -
1
votes1
answer528
viewsA: How to show/display a list of strings in Chained List?
The result is printing 1 character because its structure is char informacao meaning only 1 character and not char* informacao or char informacao[100] which means "string" You are also allocating a…