May I know what is temp doing in this statement? And why did we not execute push back after cin statement?
Car temp(name,x,y);
hey temp is just a variable of type car as you have to give a name to variable. also we also have vector of type car and pushing temp into it everytime. temp contains name, x and y.
hope its clear if yes dont forget to mark it as resolved and hit like @yobasu2015 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.