I want to create an edit function that receives as a parameter by reference the vector of songs. (using pointers)
The user must choose the number of the song and re-enter the data of that position of the vector.
I created the struct, I'm a...
Good luck, I'm developing a C code that performs data registration on files. However, I have a problem with the registerCustom function, which you will see below between the codes.
Client struct:
typedef struct
{
int idCliente;...
I have to make a program with a menu of options that allows me to read a student's information, write the name and the phone after entering their student number and determine how many students are older than an age entered by the user. The progr...
I'm new to the C language and am having trouble determining the size of struct-type vectors.
Example. I have a category-type structure with three types of variables 1 int and 2 char.
#include <stdio.h>
#include <stdlib.h>
stru...
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...
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 have a problem executing a program in ec and when I compile it and execute it it shows me a value that is not defined in my variable I'm thinking it's some bug with ide or something related to the buffer I'm going to leave a screenshot for you...
Good night, I would like to know methods to read a string in C (Version C99), I already tried a lot, and it does not work, below, the defective code.
Note: The error I am reporting is that shortly after pressing "ENTER" on the first 'gets'...
How do I fill leds and seq without needing a for loop?
int main()
{
struct ledvalue
{
int seq[10];
int leds[10];
};
struct ledvalue numbers;
numbers.seq={0,1,2,3,4,5,6,7,8,9};
numbers....
Good afternoon, well I'm here to see if anyone knows why my code is printing a memory garbage, when it executes it shows what I want but printa trash of memory, if anyone knows why I thank
#include <stdio.h>
#include <stdlib.h&g...