Questions tagged as 'c'

1
answer

Holding keys in terminal

Hello, on my Ubuntu 16.04, when I run a C program (as well as in the sublime), when I press a key, I keep repeating the same key until I release it. So far so good. But if I do not release this key and I press another key, that other key repeats...
asked by 04.09.2017 / 02:24
1
answer

Printing the double-chained list in reverse order

Good morning, this is my first post here on Stack Overflow. I was trying to make a double-chained list print in reverse order. However, after going through this list in reverse, it produced the result unexpectedly. My code is printing more than...
asked by 02.09.2017 / 17:00
1
answer

Need for pull-down resistor

I am using the attachInterrupt() function in Arduino Uno to recognize the end of stroke of an actuator. Usually the test is used with if() , however the actuator cycle is very fast and the recognition by this means becomes complic...
asked by 22.08.2017 / 20:14
2
answers

Question about vector in C

Good evening, I have a question in the code I made below, my teacher requested that the values name, ra, n1, n2 be read and the average of 40 students should be read, I am trying to do it when I try to run my program is not calculating the media...
asked by 22.08.2017 / 05:06
2
answers

records matrix vector

Students were asked to replicate a teacher-designed scheme in the classroom. In this scheme he made a vector, within each position he made a matrix and within each position of the matrix he designed a structure containing name, address and age....
asked by 09.08.2017 / 19:42
1
answer

Recursive function of Insert nodes

Looking at other problems, I realized the need to use pointers in certain tree functions. So I defined the Insert function as: Arvore* insereNo (Arvore** A, int chave) The problem is that later, at the time of inserting new nodes, there is...
asked by 25.08.2017 / 18:04
1
answer

Pointer pointer passing by reference

I'm doing a program where I need to dynamically allocate 2 arrays, so I thought of doing this allocation within a function. I tried to do this, but it is giving "Targeting failed". Could someone help me? void CriaMatriz(int ***matriz, int linh...
asked by 19.08.2017 / 03:53
1
answer

Tree b is partitioning the wrong node

I'm having a problem with the tree structure b, it's partitioning the node in the wrong way and it's fading some keys. I honestly do not know what I did wrong. #include <stdio.h> #include <stdlib.h> #define T 2 //Const...
asked by 07.08.2017 / 22:41
1
answer

How to pass information from a file to a dynamic vector of C structures?

Good afternoon! (EDITED) I'm doing a work in C language, where I have to display the information stored in a text file in the console, but it is mandatory to pass all information to% dynamic% of structures. I think I've already done somet...
asked by 07.08.2017 / 18:08
1
answer

Error Compile C in Gcc - Accentuation

Compiling the C code in GCC, and then executing it. An accent error occurs: PROGRAM: #include <stdio.h> int main() { printf ("Bem Vindo ao Nosso Jogo de Adivinhação"); } Command Terminal: gcc adivinhacao.c -o adivinhacao....
asked by 08.08.2017 / 02:34