I am developing a program to simulate a Stack, however I have some difficulties in understanding the operation, can you correct this example?
main(int y) {
int j;
f(j+1);
}
f(int x) {
int i;
return i+1;
}
I made this scheme, so w...
In the following snippet of my code I have to read a function from a txt file and extract its coefficients. When I put the coefficients as integers and reading them with %d works correctly, but when putting the coefficients with floating...
I read about gcov for the first time in the Tor documentation , which says :
'-' before a line means
that the compiler generated no code for that line. '######' means that the
line was never reached. Lines with numbers were called that numb...
I'm doing a project on which it is based on creating a structure, a vector of a structure, filling that vector with data from a file and then performing some functions.
One of the functions is to count the period of a certain day with more ve...
I have this code and it is generating an error.
#include <stdio.h>
#include <mysql.h>
#include <windows.h>
#include <sys\socket.h>
void main(void)
{
//parâmetros para Conexão
char host[100];
char user[100]...
I'm trying to read the contents of a file to a string, then use that same string in some operations.
At this moment I have the following function (at this moment only reads and prints the content):
char* ler_ficheiro(char* file_name){
int i...
I'm having an error called "[Error] ld returned 1 exit status",
I'm using DEVC ++ compiler, as soon as I put the SQLITE3.h include to start giving this error, the Code is taken from an example I found in this community. Please help me ...
My...
Hello I have an array that is formed by a set of random numbers. Yet some of these sets of numbers overlap. What can I do to prevent this from happening?
void ransnipa(int (*board)[40]){
srand(time(NULL));
int k;
int x[snipa];...