I was wondering if there was any way to cin the class function parameter in main to set the private variable. I know I could make the variable in my class a public and then cin that but is there any other way via a function. Oh and I know that I could make an another variable and then make the function set itself it to that. However is there any other to directly cin that parameter within the class?
You could overload std::istream's operator>> to deal with using cin to get the data needed for your struct and class data members. Same as you would overload std::ostreams' operator<< for cout.
Now if that confuses you a bit of studying overloading functions and the stream operators might benefit you.