https://rentry.org/PPP2_p115 ⎗ ✓ 1 2 3 4 5 6 7 8 9 10 11 12 13 14// Code derived from Stroustrup's PPP2 book // § 4.5 Functions // -and beginning on p 115 #include <iostream> using std::cout; void write_sorry() // take no argument; return no value { cout << "Sorry\n"; } int main() { write_sorry(); } build & run: g++ -std=c++20 -O2 -Wall -pedantic ./ch_04/main_p115.cpp && ./a.out sauce: Bjarne Stroustrup's PPP2 textbook /robowaifu/'s official C++ learning textbook thread Prev • Up • Next