Questions tagged as 'c'

0
answers

Error converting an infix expression to fixed post

Hello, I personally need to read an infix expression and convert it to postfix. I've reviewed the code several times but I can not find the error. When I pass an expression for example: a + b, it returns me ab. I needed to return ab +. I t...
asked by 24.10.2018 / 23:25
0
answers

socket in c errors of sending numbers of client pro server tcp

My first time here, I need a light, I have a server written in c that is a calculator and it is in a machine, the client that runs on another machine takes the two numbers and the operator that the user types and sends to the server calculate in...
asked by 22.10.2018 / 23:25
0
answers

How to play this Delphi code in Python or C

I'm developing a software for a ratchet, in the archives of it comes an example of the use of the DLL functions of it, however it is in Delphi. The following function gets a pointer to a structure called CONVFILEFORMAT FAR pF *, this structu...
asked by 19.10.2018 / 13:26
2
answers

List chained insertion at the end

Hello, I would like to know what to insert into the conditional within the function, to add the elements at the end of the list as long as they are different from 0 ... already tried several ways and I could not ... typedef struct node{ //...
asked by 19.10.2018 / 16:57
1
answer

Remove data from a C ++ file

I'm making a database for storing rock band names. But I'm not able to implement strip removal separately. Can anyone help? Follow the code. #include <iostream> #include <fstream> using namespace std; void banda(){ ifstream a...
asked by 18.10.2018 / 23:47
1
answer

How to parallelize (OpenMP) a method call?

So, I am developing a work to do the comparison of a sequential and parallel execution of a Pattern Matching method. My input is a .txt of dozens of lines, which I go through and store inside a buffer: ... fread(buffer, sizeof(char), numero_by...
asked by 15.10.2018 / 22:12
1
answer

How to do arithmetic operations using directly binary in C

I'm a beginner so there may be things wrong here. I need to do thousands of calculations with data (decimal numbers float) of several giant csv files, so I figured that using the binary in the ieee754 standard would avoid conversion and this...
asked by 21.10.2018 / 18:46
1
answer

Help with understanding hash usage error

I'm doing a program to read the words of a text file, generating a hash code to use as an index that will save the word in a vector that fits up to 1000 words. Function that generates the hash: int a, i,j,soma = 0; i = strlen(str); j = 1; c...
asked by 12.10.2018 / 01:26
1
answer

How to declare null values in C

My problem is the following I am creating a loop while that can not receive values smaller than or equal to zero, and would like to also declare that it can not receive empty values for the program to force the user to enter a number an...
asked by 09.10.2018 / 14:29
0
answers

Replication of libraries [duplicate]

In the C / C ++ language, when I include the same library in multiple .h files for the same program, is the code repeated or does the compiler avoid such reinclusion?     
asked by 09.10.2018 / 23:49