C++ Extraction Operator for Class Functions
问题 I'm not sure if operator overloading is what I'm looking for, but I need to know the best way to achieve the following in C++; I have a class Employee (for simplicity) with just an ID number atm. Please assume the input file has an int number and some characters after (1 line shown only), such as: 1234 Charles Hammond Here is the code so far. I am trying to use the extraction operator to get the integer and other data from input file to my class function (SetID); class Employee { int