Questions tagged as 'c'

1
answer

How do I read a sound file in C?

I want to make a sound mini-player using double-chained list, and I wanted to know which library and what functions does it use to read a sound file in c?     
asked by 14.02.2017 / 16:45
1
answer

Create DLL Project

I'm trying to work with XFS, but in the documentation it asks to create a DLL for each service, however the dll's do not come in the api, they must be built, only in the environment installation only has .h files, equal to this < a href="https:/...
asked by 27.12.2016 / 05:28
2
answers

What applications for binary trees implemented in vectors?

I know the theory of binary trees, I have already implemented an AVL in C. I understand the operation and applications of it when dynamically developed. But a teacher asked me to develop a binary tree in vector, I made it perfectly just that I c...
asked by 17.01.2017 / 19:34
1
answer

Invert stack values

I'm trying to invert the order of stack elements using the while loop, but I'm not getting it. pilha* inverte(pilha **p) { pilha *outra = cria(); //aloca e seta a qnt com 0 while(vazia(&p)) { outra->dados[outra-&...
asked by 13.12.2016 / 22:17
1
answer

Problem displaying list

I'm using static type list, and when I try to display it, it shows only the first student of the registered. #include <stdio.h> #include <stdlib.h> #define MAX 12 typedef struct Alunos alunos; typedef struct Lista lista; struct...
asked by 12.12.2016 / 16:23
1
answer

Code in the c ++ dev of the problem, but in another compiler it works

The code is stopping responding at the last run. #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> /* run this program using the console pauser or add your own getch, system("pause") or inp...
asked by 30.11.2016 / 16:26
1
answer

Return of a binary search

I have the following question:    Develop a recursive function that finds a value in an ordered vector using binary search. The function must give the position of the vector value as a response. If the value is not in the vector, it returns -...
asked by 22.11.2016 / 16:01
1
answer

Deleting spaces in excess of a text

I have the code of a function that should fit space in the sentence, but it is not working. I would like to do with user's input in the same way that the remove function works. Suppose I have the following sentence: input: meu...
asked by 12.02.2017 / 09:03
1
answer

Go through Enum values in C

Do you have some way to go through the values of Enum in C and display in string format, like in Java, C # and other languages?     
asked by 10.12.2016 / 14:56
1
answer

When I try to make a .bin file it gives a multiple-definition error in all functions

Linux I use the following command lines to run all the files: gcc -c aluno.c // gera o arquivo objeto com extensão .o de mesmo nome gcc -c teste.c gcc -o prog.bin teste.o aluno.o //para criar o arquivo prog.bin com a junção dos arquivos alun...
asked by 04.11.2016 / 21:22