How do I make a struct? For example say i'm making a struct named rider, do i need to make a rider.h and then a rider.cpp? All i'm doing is going to be creating a constructor for the rider thats all. So would my file be rider.h
and then i would just compile that with the main.cpp. OR can i just so the struct rider part in the main.cpp before the int main().Code:#include<string> using namespace std; struct rider { string lastName; int tickets; int time; }