Questions tagged as 'c'

1
answer

Storing a character in the vector

For some reason, the program is not saving the character in the vector, as it should be stored, it is jumping the first character. For example: // Declarando o vetor char novosValores[4] = {0}; scanf("%c %c %c %c", &novosValores[0], &...
asked by 14.02.2018 / 17:25
1
answer

Bug when using loop control

When I run this code it buga , I type 1 and it enters the function register but not pause to read the data (it keeps printing things without stopping) when I change cin by scanf it works). Can you make it work with the cin comm...
asked by 18.06.2016 / 02:02
1
answer

Typing a pointer to struct

I was suggested to build a linked list using the following struct as a node: typedef struct node *link; struct node{ int item; link next; }; As I did not understand what the pointer operator along with this typedef I...
asked by 03.10.2015 / 16:14
1
answer

Execute a list of executables

I am trying to implement a program that concurrently runs a list of executables specified as command line arguments, considering the executables without any arguments of their own. The program should wait for the end of the execution of all proc...
asked by 10.03.2016 / 17:11
2
answers

Leds and Arduino board

Good evening, I'm programming an arduino one using C. I'm using an RGB led on three PWM outputs. However, now the need to connect more leds, one hundred leds at the same time, but besides not having the necessary ports, I need a solution to b...
asked by 28.07.2015 / 03:25
1
answer

Problem compiling: no input files compilation terminated

I'm starting to program in C, but then to use GCC it's giving me the following problem when I use cmd:    gcc.exe: fatal error: no imput files compilation terminated I would like to know what to do, since all I found was just about instal...
asked by 17.09.2015 / 19:00
1
answer

Incompatible Arguments - Pointers to Structures

Good afternoon, I needed help fixing errors in the terminal. Summary: I performed some functions to get certain information (values) on active customers (where a customer is active if he or she is an issuer or beneficiary of an unproc...
asked by 14.05.2015 / 13:02
1
answer

Limit characters in portable tesseract

Currently I'm using tesseract portable integrated with java to be able to identify some characters, but I'm facing some problems like: Some fields only date as: 01/02/2013 It looks something like this: 0Il0S/S013 It just...
asked by 27.04.2015 / 21:15
2
answers

How to create a linked dynamic list inside another dynamic list in C?

I'm having a hard time getting a dynamically linked list inside another using data structure. I can create a dynamic list, but I can not create another one within it. To illustrate what I mean: I have a list of Bands ; each band is a li...
asked by 03.05.2015 / 01:12
2
answers

simple problem with Vector and Structs

Hello, I would like to know why it is not going, I have looked in many places but can not find in C #include <stdio.h> typedef struct ficha_pessoal{ int idade; char sexo; int CPF [11]; int CPFc [3]; float salario;...
asked by 07.12.2015 / 18:32