Questions tagged as 'c'

0
answers

Draw binary tree

I must make a binary tree that keeps people with their age. I already have the tree code keeping records but I need to show it in the following way (attached image): This is the code I have done so far, thanks for your help. #include...
asked by 24.05.2018 / 22:07
0
answers

List of options for setlocale in C and use

Maybe it's a very extensive question, but it's two things that are part of the same problem: In the locale.h library it is assumed that the international options for C are found, but for the most part I look for no list with the command of each...
asked by 08.05.2018 / 19:44
0
answers

How to register a contact in an agenda?

Very good. I have to add a contact either by means of an unordered agenda or an agenda sorted by name. When I insert a contact in the address book in a disorderly way, I insert it well, the problem comes when I insert it in an orderly mann...
asked by 08.05.2018 / 16:31
0
answers

Window in c with winapi

I'm making an application in c, in windows, with mingw. Currently just write on the screen (in a console) something, and what I want is to dispense with console and print things in a simple window with a memo field and go writing things in that...
asked by 30.04.2018 / 12:36
0
answers

How can I play a .wav audio file in c in linux?

My teacher gave me this program and I have to get it to play an audio track but until now I have not been able to do it, I do not ask you to do the work to me, just to guide me #include <sys/soundcard.h> ///Se encuentran definicas l...
asked by 01.05.2018 / 23:22
1
answer

Sort list pointers doubly linked

There is the following structure: typedef struct nodo{ int matricula, edad; char nombre[20]; float peso, altura; struct nodo *next, *prev; } List; List *first, *buffer, *buffer2; And to sort it, according to the member, ther...
asked by 01.05.2018 / 02:12
1
answer

Problems when calling a function in C

Within this program, which is shared memory in C, I have an error in compiling it, it tells me that there is an implicit statement inside the switch that is where I send the function, does anyone know how I can solve it? #include <stdio.h&g...
asked by 13.04.2018 / 02:23
1
answer

Simple program in C

This I have removed from an old C book, the C book, I am learning c but I do not understand the last two results that this program gives that are a 100 and 99, I do not understand why it returns the vector in that way. Thank you very much. #in...
asked by 11.04.2018 / 17:24
0
answers

Problem with C pointers

My problem is this: I have the following code char v = 65; char k = 65; char* un = calloc(2, sizeof(char)); for (int i = 0; (25*i < dot) && (i <= 25); i++){ un[0] = v; for (j = 0; (j <= 25) && ((j + (25*i)) &l...
asked by 12.04.2018 / 20:01
2
answers

Pointers to dynamic strings

-What I wanted to do, I could not implement it, is that when asking for a name and a surname to the user a priori we DO NOT KNOW what will be the stdin length that the user types. In the malloc line I put 10 to put as I could have put 20 but in...
asked by 07.04.2018 / 00:49