make a pointer to struct code example
Example: how to use pointer to struct c++
typedef struct{
int vin;
char* make;
char* model;
int year;
double fee;
}car;
car TempCar;
tempCar->vin = 1234; // metodo 1
(*tempCar).make = "GM"; // metodo 2
tempCar->year = 1999;
tempCar->fee = 20.5;