MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / setBorn

Method setBorn

week09/examples/array.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected