Posts by wilson souza • 11 points
4 posts
-
0
votes1
answer279
viewsA: Error returning items not repeated and in alphabetical order
Good afternoon, my friend. The error in your code is in the following line: if(! strcmp(vi[i], vi[i + 1]) == 0) It is generating an address overflow in memory when it arrives at the end of the…
canswered wilson souza 11 -
0
votes1
answer45
viewsA: Error when executing the program hangs. Circular list(Solved) However I’m still in doubt
struct Tnodecaractere { character struct Tnodecharacter *next; }; struct Tnodecharacter *inicio = NULL; void inserts(char value) { //good practice //always initialize the variables that will be used…
-
1
votes2
answers221
viewsA: How to transform my code with static memory struct to C dynamics?
I hope it helps you: #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct { char CPF[12]; char nome[41]; char email[31]; int idade; }Dado; int main() { FILE…
-
0
votes1
answer702
viewsA: Check that stack 1 elements are equal to stack 2, C++
Making the necessary modifications in cx11++ These modifications should help you: int compara_pilha1_com_pilha2 (Pilha* pi1, Pilha* pi2) { //verifica se não esta nulo if(pi1 == nullptr || pi2 ==…