Category Chapter 10 – Principles and Practice Using C++

concatenating files containing whitespace-separated words

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 9 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 10 Exercise 9 #include "std_lib_facilities.h" void read_file(string& _input, ofstream& _ost) { ifstream ist{ _input…

read random hour + temperature pairs [fahrenheite + celsius indicator] and calculate mean and median values

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 4.1 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 10 Exercise 4.1 #include "std_lib_facilities.h" struct Reading { int hour; double temperature; char suffix;…

write random hour + temperature pairs [fahrenheite + celsius indicator]

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 4.0 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 10 Exercise 4.0 #include "std_lib_facilities.h" struct Reading { int hour; double temperature; char suffix;…

read hour + temperature pairs and calculate mean and median temperature

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 10 Exercise 3 #include "std_lib_facilities.h" struct Reading { int hour; double temperature; }; struct…

Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124