Well, I was testing the strtok function, but it's giving me this problem of "segmentation failure (recorded core image)".
Before I tried to strPtr [i] = strtok (str1, str2); but gave this error:
"error: assignment to expre...
I'm trying to return the smallest value using va_args , which supports multiple arguments, but it always returns the same number: -13227;
#include <stdio.h>
#include <limits.h>
#include <stdarg.h>
int minimo(int args,...
I'm having an error signing an array:
Menu m = Menu();
m.Options[4] = {"teste1","teste2","teste3","teste4"};//Erro aqui
m.Show();
Menu Class:
class Menu
{
public:
String Options[];
int index = 0;
int len = 0;
String Show()...
The code below was working as expected, but I changed the info type in the structure List from Retangulo* to void* and tried anyway to cast but continue with the following error:
t.c: In function ‘imprimir’:
t.c:40:38: warning...
Hello, my teacher made the following definition of some structs for a code from a list in data structure, but unfortunately I can not understand the definition of each struct itself.
typedef struct{
int Chave;
}TipoItem;
typedef struct Tip...
Implement code that simulates the speed of a car as a signal plus noise, with 50 elements. The speed value increases linearly from 0-50 km / h. The noise amplitude is ± 1 km / h. The values are sent to the console with a precision of three signi...
I am developing the following code and I am using global variables that can be changed in different parts of the code, but when I change for example the state variable in the menu () function its value is not changed in the other functions that...
Good morning everyone, I want in my code to leave the Main (); only with function call, all work is divided into small functions in the document.
I want to write an array [3] [3] in a function and organize and print it in other distinct funct...
The next function should turn variables into lowercase and then compare them. I've tried converting before, but also bugou . Arithmetic use of pointers next to variables of struct . Pointer points to struct .
How to fix the error...
I made a program that simulates a login and when I convert the password that is in int to a string using sprintf it's from the failed segmentation, I tried to use the itoa but it's the error definition
#include <stdio.h>
#include <std...