I have the following struct:
tempCar.vin = 1234;
tempCar.make = "GM";
tempCar.year = 1999;
tempCar.fee = 20.5;
You need to use the -> operator on pointers, like this:
car * tempCar = new car(); tempCar->vin = 1234; tempCar->make = "GM"; //... delete tempCar;
Also, don't forget to allocate memory for tempCar if you're using a pointer like this. That's what 'new' and 'delete' do.