MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / toString

Method toString

Exercises/Modules/Chapter 16/Exer16_06/Customer.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{}
16
17std::string Customer::toString() const
18{
19 std::string result;
20 result += m_surname;
21 result += ' ';
22 result += m_name;
23 result += ", ";
24 result += m_street;
25 result += ' ';
26 result += std::to_string(m_streetNumber);
27 result += ", ";
28 result += m_city;
29 return result;
30}

Callers 1

printFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected