Questions tagged as 'c'

1
answer

Executable created by CodeBlocks opens and closes alone

I have a problem with my program in CodeBlocks. When I compile and run the program, CodeBlocks creates an executable in the Debug folder that is inside the bin folder, located in the same folder where the project is. When trying to open the .exe...
asked by 28.07.2015 / 06:37
1
answer

Storing student information [closed]

I need to develop a program on WINDOWS platform where student information will be stored: age , < strong , shuffle and name tags. The program should also contain a name search. I would like suggestions.     
asked by 15.05.2015 / 01:34
1
answer

Conversion error in c :: b

I have a queue defined like this: typedef struct nodo { int inf; struct nodo *next; }NODO; typedef struct { struct nodo *INICIO; struct nodo *FIM; }DESCRITOR; typedef DESCRITOR *FILA_ENC; And a function that queries and removes...
asked by 05.06.2015 / 18:10
1
answer

Problem with final results

Good evening, my code is giving a problem that I can not find, the idea of it is this: I add the number of questions and the number of students in the room, and then add a feedback and the questions of the students, after this checks the feedbac...
asked by 06.06.2015 / 23:47
2
answers

Why is one of the cases incorrect?

Good night, I wonder, why my code returns a wrong value for a case where the input is 1.1 and 100000, the output should give 100000 and 5000050000 and this is giving 100000 and 705082704 ?? the output should be double or float ?? #include <...
asked by 18.04.2015 / 22:46
2
answers

Bubble sort in array, bi dimensional vector

I am not able to create a bubble sort that sorts a square array. Simple vector I get, the problem is with matrix. I tested it in many ways and nothing. Currently I'm in the following configuration: void ordem(int *matriz [][n]) { int...
asked by 07.04.2015 / 06:52
1
answer

Error: subscripted value is neither array nor pointer nor vector

Hello, good afternoon, I'm trying to get the values that are in my array in the function, but this is giving this problem: 1: 19: error: subscripted value is neither array nor pointer nor vector Here is the code for the function: int contag...
asked by 02.06.2015 / 18:30
2
answers

How to make an array sum using shared memory?

I need help to perform a sum of arrays using shared memory. #define LINHAS 3 #define COLUNAS 3 #define PULAR_LINHA printf("\n") int main(int argc, char *argv[]) { int linha, coluna; //indices int pid, id; int matriz1[][COLUNAS] = {...
asked by 01.04.2015 / 03:07
1
answer

Remove text file

I'm having trouble removing a text file in C. Shortly after using the fclose () function, I use remove () indicating the name of the text file, but the file is not deleted (the remove () function is not returning 0); What could be happening?   ...
asked by 26.04.2015 / 03:27
1
answer

C program where you have to remove a student from a vector

I have to make a program that college that remove a student from a vector, that when I run the code below, it deletes the student plus leaves a special character in the code, can you help me? //Remover o Aluno void removerAluno(DADOSPES p[], i...
asked by 27.04.2015 / 02:34