I'm having a college work on Threads and competition control (OpenMP) in C, which is giving me a bit of a headache.
The work consists of taking text from any file and separating it from% cos_de% producers and consumers, where consumers...
My code in C gives a crash displaying the following error:
name.exe stopped working
I do not know how to fix this. Here is the code I've already done:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>...
I'm using pthread.h and using the following functions:
//
// Cria A thread
//
thread_argsPP[contthreadsPP] = contthreadsPP;
pthread_create(&threadsPP[contthreadsPP], NULL, ReceivePinPad, (void *) &thread_argsPP[cont...
Assuming the following structure:
typedef struct lnode{
struct lnode *next;
void *data;
int id;
}Lnode;
Let's say I want to store a Lnode in heap :
Lnode *exp = malloc(sizeof(*exp));
Should I now also use malloc...
Define two structures to represent a line. I need to open a file that contains the values of one line per line, putting the values in a linked list. This I was able to do.
#include<stdio.h>
typedef struct{
int x,y;
}ponto;
typedef struct...
Well, good night, I'm having a problem with this algorithm, so please enlighten me with your knowledge.
I apologize in advance if it is difficult to understand the code, I am still in the second period.
The goal of the algorithm is:...
I'm using Visual Studio 2015 to create a function in a dll, and when I try to use it in Postgres, I get the following message:
server closed the connection unexpectedly
This probably means the server terminated abnormally
befor...
Good afternoon,
Recently I had a job that was basically the implementation in C language with graphical interface of a B-Tree, the program should allow and show the insertion, removal and search operations, rebuilding the tree at every step....