Questions tagged as 'c'

1
answer

Body mass index - C

Write a program in C, which: Calcule el Indice de Masa Corporal de un individuo, solicitando su peso y su estatura. Si el IMC es menor a 20 indique "Peligro, estas bajo de peso" Si el IMC esta entre 20 y 25 indique "Felicidades estas en tu pes...
asked by 25.03.2017 / 19:40
1
answer

Sort linked lists (LinkedList) in c?

I'm doing a project in C, but I got stuck when I wanted to order the Nodes. I have methods to fill and eliminate the nodes, the problem comes when trying to order does not do anything, it leaves it as it is. When entering a user I assigned his n...
asked by 27.03.2017 / 05:34
1
answer

C Search and write to a txt file

I need help: / this program is supposed to look for a text in a txt file, if this text is there, then it generates another text and if that is not it writes it. for example: Aleatoreamente gender INSERT INTO ALUM_PROF VALUES (2,4); And I look...
asked by 29.08.2017 / 04:11
2
answers

Doubt with Pointers to fix Structure Variables

My question is, why is the pointer const wDeck , which is as a parameter in the functions fillDeck , shuffle and deal , does not have brackets at the end (that is, it is not a pointer to an array unlike the other paramet...
asked by 23.01.2017 / 18:11
1
answer

Help with fix number in C

I'm trying to do the following program with the use of a one-dimensional array: Create an array of integer type, ask the user how many integer values he will capture, that amount will be the length of the array. Have a menu with the following...
asked by 19.10.2016 / 00:45
2
answers

Why does it stop working?

Good, I'm testing the execution time for different algorithms that solve the problem of matrix multiplication, but when I try to order arrays 417 up, the .exe stops working. The program compiles without problems, but I would like to know why...
asked by 02.09.2016 / 18:27
1
answer

Error: unknown type name

The error would give in the use as a parameter in the two methods of the character. They use the Flag Type, saying that they do not know that type. #ifndef __PERSONAJE_H #define __PERSONAJE_H #include <stdlib.h> #include...
asked by 13.05.2017 / 14:51
1
answer

In C how to search all the file names in a directory and save them in an array of character strings?

Create a code to search all the names of the files in a directory, this code is recursive in case I find other directories in which I am reviewing them. The path inside the directory and file search works well for me, since I have tried them by...
asked by 19.06.2016 / 21:32
2
answers

Convert char array to one byte

void loop() { String str = "F03A42"; int start = 0; int arr[2][19]; int t = 0; //El 'for' lo hace 6 veces hasta que acaba la cadena de datos for(int ends = 2;ends <= sizeof(str); ends += 2){ char...
asked by 17.06.2016 / 04:53
1
answer

Problem when searching for a specific element of a matrix

I'm going through a matrix of integers that must find a specific element (a saddle point, whichever is the lowest in its row and the largest in its column). The program works well if I use a for loop to traverse the matrix that issues a messa...
asked by 12.05.2016 / 16:50