Questions tagged as 'c'

2
answers

How to print the text string correctly?

   Create a program in c for the following statement:            The program must request a whole number that includes up to 3 digits (units, tens and / or hundreds), and then present that number written in words. For example: if we send 57 t...
asked by 05.07.2017 / 16:51
1
answer

Pass data from txt to struct C

Very good guys, I have a dudilla and I do not know how to raise it, I have to import a .txt data file into a structure. The structure is this:    Structure: typedef struct { char nomEditorial[TAM]; int numPagina; } tRegLibros; ty...
asked by 25.04.2017 / 19:28
1
answer

Problem of segmentation of memory project in c

I have a problem with the following program, I introduce a first data through the function add and the data is saved without problem, to the second round and try to enter a second data along with another node the program jumps with a error and i...
asked by 27.04.2017 / 03:44
1
answer

How to make a C program restart on recursion?

Hello this is a simple program with which I explained the recursion, this is the code: #include <stdio.h> void funcion1(int a) { if(a>3) { printf("\nNumero %d",a); funcion1(a-1); } } int main(void) {...
asked by 19.04.2017 / 06:09
1
answer

How to cast from a struct to a void * and vice versa in C?

Good, I'm doing a program that reads a Python Bytecode file and executes the instructions given in it. The problem that I have right now is that I need to put a tag type structure into a stack. The stack only admits the type void * because there...
asked by 04.05.2017 / 05:40
1
answer

In C remove commas from a csv file and jump line

Hello, I have this program that reads and prints the csv file which is a list of students that goes in this format name, surname, ballot, age, email and prints the list like this: name, surname, ballot, age, email name, surname, ballot,...
asked by 01.05.2017 / 23:20
1
answer

Get the number of different characters of a C text [duplicated]

I need to make a program in C , in which a word is entered and the number of different characters of a text char[] returns. Example: "holahola" only 4 different characters were used. If there is at least one space, it must be ta...
asked by 19.03.2017 / 01:18
2
answers

Concatenate in a cycle in C

I have a problem, when I want to go concatenating it is the variable of type string temp every time the cycle is repeated this variable is restarted. Why is this happening and what can I do to solve it? void processData( int *digits, int digit...
asked by 26.02.2017 / 04:43
1
answer

error: variable-sized object may not be initialized

The elements of chair points fulfill one of these conditions: Within the row are minimal and within the column are maximum. Inside the row they are maximum and inside the column they are minimum #include <stdio.h> #define N 10 t...
asked by 25.04.2017 / 15:08
1
answer

Request for member 'x' in something not a structure [closed]

Hello, how I have reviewed my code but I can not see my error. Could someone enlighten me? The problem arises when trying to access 'end'. By removing these lines and de-commenting the lines that were already there, it works perfectly. I just wa...
asked by 25.04.2017 / 06:01