Questions tagged as 'c'

0
answers

Vector Indexing in C

I have this function that is called through a menu of options: char cad_cliente()//cadastro de clientes { char resp;//variavel de resposta se cpf invalido system("cls");//limpa tela for(int c = 0; c < MAX ; c++)//para a primeira inform...
asked by 14.05.2016 / 21:25
0
answers

Procedures nested in C being ignored by previous procedure

I'm having a problem in the last procedure of the following code, where the procedure receiveString to make the comparison with another one is being ignored and jumping straight to receiveEndereco. Could someone tell me why and how to solve i...
asked by 18.06.2016 / 18:42
0
answers

Gtk / Glade Schema Error

Good evening guys, all good? I'm having an error when running an interface created for a C program using GTK / GLADE. The program compiles normally but at the time of execution it claims that libgtk-3-0.dll is missing and the only part tha...
asked by 19.06.2016 / 01:40
5
answers

Receive an expression and compute in C

I'm developing this program that should receive an expression from the user and do the calculation. Ex:    Enter an expression       3 * 5-1       14 My problem is how to handle the expression sent by the user. It was recommended to...
asked by 18.02.2014 / 20:22
0
answers

Program to print Windows paths

Well, I have a program to print Windows "C: .." paths. I have created the following code: Lista_Viagens cria_lista_viagens(void){ Lista_Viagens aux; aux = (Lista_Viagens) malloc(sizeof (List_nodev)); if (aux != N...
asked by 01.05.2016 / 11:26
2
answers

Problem with dynamic allocation of two-dimensional arrays in C

I need to make a matrix product where the user must enter the dimensions and terms of the matrices, but the program simply stops working. Here is the code: #include<stdio.h> #include<stdlib.h> int main(int argc, char const *argv[])...
asked by 04.05.2016 / 01:43
1
answer

Knowing how many elements I have in an Arduino array

I have an ARRAY of at most 100 lines by 2 columns, which will be filled by a user. My program will play back user activity later. What I want to know is how to know how many rows were filled with data. Is there any C command for this?    ...
asked by 07.05.2016 / 23:59
2
answers

C - OpenSSL (d2i_RSA_PUBKEY, d2i_RSAPrivateKey and d2i_RSAPublicKey)

I created an RSA private key through the following command: openssl genrsa -out keypair.pem 2048 I need these keys to be stored in DER (PKCS # 1) format. So, I converted this private key, which is in PEM format, into two files in DER forma...
asked by 22.04.2016 / 20:34
1
answer

read from binary file to linked list c

Well, I'm having a problem reading the information from a binary file and inserting it into memory in a linked list. PERGUNTAS val; lista_perguntas * aux = original->next; lista_perguntas * base = original; lista_perguntas * novo; while...
asked by 28.05.2016 / 15:26
1
answer

How to divide 2 numbers represented by a circular list in C?

Hello, I'm writing algorithms for large numbers. I implemented the addition, division and subtraction operations but for the divide I have no idea just an algorithm to use with binary basis. It is not an option to turn the number to binary, I wa...
asked by 28.05.2016 / 18:21