Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ Time
Method
Time
base_code/overload.cpp:8–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
int hh,mm,ss;
7
public:
8
explicit Time(int h=0, int m=0, int s=0): hh(h),mm(m),ss(s) {}
9
10
// 重载 =
11
Time& operator = (const Time& t) {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected