Questions tagged as 'c'

0
answers

Read entry and store specific information in C

I want to identify all 32 reserved words of C written in an entry that simulates a C code, but it is not storing all and I do not know what is wrong, obs stores only if it appears and what not the number of times it appears. Here is the code and...
asked by 08.11.2018 / 21:55
0
answers

C Transposed Cryptography

I'm doing a C-Shift encryption int main() { char texto_usuario[n], textocriptografado[tamanho_string];// é aqui que nós vamos armazenar a string do usuário char letra_usuario; // = 'alguma letra' /*guarda a letra digitada pelo usuário...
asked by 09.11.2018 / 02:49
1
answer

Makefile compile all .c files without specifying them

I'm trying to create a Makefile that causes all .c files to be compiled without having to add the files to the Makefile line by line in the Makefile. I tried to follow the Creating Makefile file , but found it very confusing. My interest...
asked by 03.11.2018 / 13:49
1
answer

Invert row with column in an array?

   Make a program that randomly generates 20 integers in the range of 0 through 999 and fills in an array of 5 x 4 size. Show the matrix, then show the transposed matrix (reverse row with column). I've already been able to populate the array...
asked by 03.11.2018 / 01:26
3
answers

Incorrect reading of floating point

I have a file that stores products, each product has three information: its name (char *), quantity in stock (int) and its price (float). The information generated in my program I am saving to a file and leaving the file in the following format:...
asked by 31.10.2018 / 18:48
1
answer

Why is this algorithm in C returning erroneous values?

#include <stdio.h> #include <stdlib.h> /* Desenvolva um algoritmo que leia 2 vetores de 10 elementos inteiros cada. Em seguida, calcule a soma desses vetores, guarde o resultado em um terceiro vetor e escreva o resultado */ int main(v...
asked by 10.11.2018 / 21:28
0
answers

Error uploading an application with dokku

When uploading an application with dokku, I'm having the following errors: -> Failed building wheel for pylibmc -> src/_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory #include <libmemcache...
asked by 30.10.2018 / 13:49
1
answer

Generate an error if the code entered by the user is not a valid value

I have the following code snippet: //Pedir para entrar com o código enquanto for menor ou igual a 0 do{ printf("Entre com o codigo:"); scanf("%i",&CODAUX); }while((CODAUX <= 0)) ;...
asked by 01.11.2018 / 17:48
0
answers

Structure with another structure inside it in python ctypes

I'm developing a ratchet control software, it uses a dll called xpcomlib, and has examples made in C. I'm developing in Python and for using the DLL I'm using Ctypes, I've been able to make DLL functions work almost all but one, it needs one poi...
asked by 25.10.2018 / 19:45
1
answer

Could you help me invert a linked list? When inverting only the last element appears

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <new> typedef struct dados{ char nome[20]; char profissao[20]; int idade; float salario; dados *prox; dados *anterior = NULL; }cl...
asked by 24.10.2018 / 18:36