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

Function main

Examples/NoModules/Chapter 13/Ex13_12/Ex13_12.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <iostream>
4
5int main()
6{
7 Message beware{ "Careful" };
8 Message warning;
9
10 warning = beware; // Call assignment operator
11
12 std::cout << "After assignment beware is: " << beware.getText() << std::endl;
13 std::cout << "After assignment warning is: " << warning.getText() << std::endl;
14}

Callers

nothing calls this directly

Calls 1

getTextMethod · 0.45

Tested by

no test coverage detected