Questions tagged as 'c'

0
answers

Program stopping for no reason

I'm doing a program to alphabetize and show the last name of the alphabetical order, with the end of the EOF file, only it only works if I do not put names without space, if I put a name with space it simply to. Example input: Wow, how bea...
asked by 30.01.2018 / 16:50
2
answers

Linked lists

I'm tending to create a program that as I go in with the values, it adds at the beginning of the list chained, so I saw it is storing the values right, but at the time of printing it not printa, as if the list it was empty, I looked for the erro...
asked by 02.02.2018 / 12:33
0
answers

Error of indefinite reference - Allegro 5

I installed the Allegro 5 lib with the following script: cd ~/Documentos sudo apt install -y git build-essential subversion cmake xorg-dev libgl1-mesa-dev libglu-dev install libpng-dev libz-dev libcurl4-gnutls-dev libfreetype6-dev libjpeg-d...
asked by 18.01.2018 / 13:39
2
answers

Does the character '' (SPACE) count in the string in the C language?

For example, you will only save the first letters in the array before the space, because? Does anyone know how to explain it? #include <stdio.h> int main(void){ char nome[20]; printf("Digite seu nome: "); scanf("%s"...
asked by 15.01.2018 / 14:11
0
answers

Create application to communicate with SYSFAN output of the motherboard

Hello, I need a library, language, code idea, so you know where I can write the code to communicate with the Fan output from the motherboard. To better understand the idea, there are applications like SpeedFan that do this work. However, I ne...
asked by 15.01.2018 / 01:07
0
answers

Return string array in c

I'm trying to return an array of strings to use later in main. Here is my function: char **separar_palavras2() { setlocale(LC_ALL, "Portuguese"); FILE *arquivo; arquivo = fopen(ftexto, "r"); int i = 0, j = 0; char* linhas[50]; char line[200...
asked by 27.12.2017 / 02:20
1
answer

Socket in C does not compile

I'm having trouble creating a C socket on Linux Ubuntu. I've done everything as the guy explains in class and my code does not compile. Code GNU nano 2.5.3 Arquivo: socket.c...
asked by 24.12.2017 / 16:22
1
answer

Add row and column values and store in vector

Good afternoon, I'm doing an algorithm in which I need to store the total sums of each row and each column in different vectors. For example: vector of 5 positions receives the total of the sum of 5 rows of the matrix, each result stored in a...
asked by 03.01.2018 / 19:02
1
answer

Meaning of expression n% = 100 [duplicate]

I have studied C and I came across a very difficult problem that after much trying, I gave up and went to get an algorithm ready on the internet to study it, but the expression n% = 100 I could not understand at all. I looked at various progra...
asked by 04.01.2018 / 04:12
2
answers

C program, how do you print the word without the character?

IcannotprintthewordwithoutthecharacterandIhavenoideahowtoexecutetheending.ifanyonecanhelpfollowwhatI'vealreadydone:#include<stdio.h>#include<string.h>intmain(){charfrase[20],nova[20];charcaracter[1];intx,y;printf("Informe a frase: "...
asked by 17.12.2017 / 21:00