Posts by Prog • 35 points
5 posts
-
0
votes1
answer61
viewsQ: insert names neatly into a list, I’m not aware of this
//function of inserting there; there only does it with the 3 first names, the others it does not order Aluno *cad(Aluno *aluno) { Aluno *aux; while(1) { aux = aluno; if(aux->prox == NULL) { Aluno…
-
0
votes1
answer1490
viewsQ: How to create simple circular chained list in C ?
NOTE: The first element I am inserting outside of here, this is pro second from now, the while will run until the user type the id of a student -1 q ta in the create function. It’s falling in…
-
1
votes1
answer2329
viewsQ: Sort a student list by name in alphabetical order
That’s what I thought: Aluno *ordenarNome(Aluno *aluno){ Aluno *aux; Aluno *aux2 = (Aluno*)malloc(sizeof(Aluno)); Aluno *aux3 = (Aluno*)malloc(sizeof(Aluno)); Aluno *aux4 =…
-
-2
votes1
answer817
viewsQ: Implement numerical sum with successor and predecessor only
Consider a numerical system that does not have the addition operation implemented and that you have only operators (functions) successor and predecessor. Then, it is asked to write a function…
-
0
votes0
answers42
viewsQ: giving error in the places where have comments and I do not know the reason
#include<stdio.h> #include<stdlib.h> #include <string.h> struct pessoa{ char nome[100]; }; typedef struct pessoa Pessoa; struct funcionario{ Pessoa f; char cargo[120]; float sal;…