Posts by Enzo Nunes • 23 points
4 posts
-
0
votes1
answer102
viewsA: Remove an element previous to the element specified by the user in a List. C
I managed to resolve by making the following changes: void retiraAnterior(lista* LISTA, int indice){ produto* tmp = LISTA->inicio; int vazio, achou; vazio = listaVazia(LISTA); if (vazio == 0){…
-
0
votes1
answer102
viewsQ: Remove an element previous to the element specified by the user in a List. C
I have to create a program, which will create a dynamically double-chained list and this program should do the following: the program will read values that the user writes and add to the list. Then…
-
1
votes1
answer94
viewsQ: How to create a matrix with dynamic allocation and structs
I know how to create a matrix using dynamic allocation only. However, I’m not able to create using structures. I have the following struct: struct matriz{ int** elemento; int nlinhas; int ncolunas;…
-
-1
votes1
answer58
viewsQ: Problem with DYNAMIC ALLOCATION with char pointer in structs
I have the following problem: I must create a program that will register an N number of students and the maximum size of each student’s name is M. I must use the following structure: struct Aluno{…