Questions tagged as 'c'

1
answer

Does anyone know why I'm not running?

#include <stdio.h> main() { float n1,n2; do { printf("Informe dois numeos:"); scanf("%f %f", &n1, &n2); if (n1>n2){ printf("DECRESCENTE"); } else { printf("CRESCENTE");...
asked by 02.04.2017 / 03:36
1
answer

How to store calendar contacts I created in a vector \ array and list them? W

I'm trying to develop an agenda in C. I would like to know how do I store calendar contacts that I created in a vector \ array and list them? I'm also breaking my head when it comes to listing a phone number ... PLUS I would like tips to...
asked by 24.04.2017 / 16:19
1
answer

Chained list of strings (vector of characters) in C

I'm doing a job for college, and it's basically about Hash table . At work, I have to do the hash table of a n strings, for example. Instead of doing an array of character arrays (in this case, an array of strings), I would like to implement...
asked by 25.04.2017 / 23:33
1
answer

Code :: Blocks doubts

1-how do you put it as default?
asked by 31.03.2017 / 17:47
1
answer

Problems with input of arrays in C

I want to make a C-RAM simulator and I need to manipulate strings, so I would like to use a 4x4 array to input 4 memory locations with 4 bits: 1010 1000 1011 0000 Something like that. #include<Stdio.h> void main(){ char array[4][5]; prin...
asked by 31.03.2017 / 14:35
0
answers

qsort function to sort a struct

typedef struct{ long At[tam], Si[tam], Sf[tam]; }TDados; For this struct , I wanted to understand how to sort struct by Sf using the qsort function. Can anyone explain?     
asked by 20.03.2017 / 14:57
1
answer

Creating dynamic lists dynamically and saving their addresses (start of list)

Hello, I'm doing a college work on Hash table and I'm having some difficulties. I'll try not to complicate too much (to tell you the truth, running my code helps me understand what I want to do). Basically, I have, for now, a program that gen...
asked by 27.04.2017 / 02:18
1
answer

Passing value from a label to the Arduino via serial

I developed a WindowsForm that contains a label that performs the CPU usage check and displays its variations, and a button that connects the software with the arduino to the available serial port. I also created a textBoxReceber, to check if th...
asked by 10.03.2017 / 14:26
1
answer

Why does the code blocks compile using g ++ in a project set up as "C"

I'm learning C and using CodeBlocks, I was in% File > New > Project > "Console Application" > "GO" > Next and the question appears Please select the language you want use. I select C . but when compi...
asked by 20.04.2017 / 22:41
1
answer

Program does not execute without reading the contents of the variable

I'm creating a simple program for a college job, which reads 2 numbers, an arithmetic operator and returns the result of that operation. But it happens that after printing on the screen "enter the operator", the program does not expect me to ent...
asked by 25.02.2017 / 17:09