Posts by emic • 25 points
3 posts
-
1
votes1
answer426
viewsQ: Insert sub-list C
Hello, I’m having a hard time working with chained sublists. I would like to know the correct way to insert a sublist in a list. I have declared the lists as follows:: struct Casa { int…
-
1
votes3
answers2790
viewsQ: Read a string with line break
I need to compare two strings to see if they are equal. One of them is in a vector of struct and was dealt with the fgets, so it’s a line break. The other one is informed by the keyboard. I wonder…
-
0
votes2
answers1770
viewsQ: Sort a struct
Do you have any way of ordering a struct in the form: struct cidadecoord { char cidade[90]; int coordx, coordy; }cidades[N]; N is worth 30 in the case, and I would like to order x and y coordinates,…