| 43 | name[len] = '\0'; |
| 44 | } |
| 45 | void setBorn(int b) |
| 46 | { |
| 47 | if (b >= 1990 && b <= 2020 ) |
| 48 | born = b; |
| 49 | else |
| 50 | std::cerr << "The input b is " << b << ", and should be in [1990, 2020]." << std::endl; |
| 51 | } |
| 52 | // the declarations, the definitions are out of the class |
| 53 | void setGender(bool isMale); |
| 54 | void printInfo(); |
nothing calls this directly
no outgoing calls
no test coverage detected