Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShiqiYu/CPP
/ setGender
Method
setGender
week09/examples/firstclass.cpp:28–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
std::cerr <<
"The input b is "
<< b <<
", and should be in [1990, 2020]."
<< std::endl;
27
}
28
void setGender(bool isMale)
29
{
30
male = isMale;
31
}
32
void printInfo()
33
{
34
std::cout <<
"Name: "
<< name << std::endl;
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected