So my question is fairly simple (I hope). I currently have a Class with a constructor that looks like this:
Constructor(String szName)
the string will be holding a name; This may be more then one part. So John, John Smith, John H Smith, must all be valid inputs. I know I could do the following:
std::string input;
getline(cin, input);
myClass Foo(input);
and it would work fine. But is there anyway for me to directly send the getline input to my constructor?
Thank You for your help in advance.