Hello, everyone.
I have a program that has a struct like this:
struct itemDeLista{
char nomeProd[10];
float quant;
float vUnit;
int item;
};
But I need to count the number of letters in the str...
Hello,
I created a struct :
typedef struct
{
float valor;
float peso;
} objeto;
And inside main () I created a vector of these guys:
objeto conjunto[50];
Here, I need to exchange a 'place' object with...
I need to use the following structures without changing their implementations from a .h file.
typedef unsigned long int chave_t;
typedef unsigned long int conteudo_t;
typedef struct entrada_hash{
chave_t chave;
conteudo_t * con...
I need to copy struct problema1 to struct problema2 , but when doing the way you are in the program below, when I change the struct problema2 , you are also changing the struct problema1 . The way I did it by copying the...
I'm having trouble reading Bitmap files. The results are not expected.
Size is always the same regardless of which image I open
The height and width do not match the size stated in the image viewer
Color values are not always the...
I need to physically delete a record created within a struct defined in my program, but in every way I tried (Set it to NULL , Create another struct and save all records that were not deleted in it ).
I registered the foll...
I need to compare two strings to see if they are the same.
One of them is in a struct vector and has been dealt with fgets , so it is broken. The other is informed by the keyboard.
I would like to know if there is any function to read t...
I'm trying to set the value of a char vector of a struct inside an if, but without success ...
A struct itself:
struct ficha {
char nome[31], classificacao[31], telefone[21];
float altura, peso, imc;
}paciente1, pa...
I have the following structures:
typedef struct DataNode
{
int id;
} DataNode;
typedef struct Node
{
DataNode data;
struct Node *Next;
} Node;
typedef struct List
{
int size;
Node *head;
} List;
I made a dra...
I have the following structure for my dynamic list:
typedef struct DataNode
{
int id;
} DataNode;
typedef struct Node
{
DataNode data;
struct Node *Next;
} Node;
typedef struct List
{
int size;
Node *head;
} Li...