I'm following a tutorial and I have this line:
Human(const std::string & name) : nameC(name) { }
My question
- Here what does & (ampersand) do?
- What does nameC(name) do? nameC is a variable itself, isn't it?
I'm following a tutorial and I have this line:
Human(const std::string & name) : nameC(name) { }
My question