Category Chapter 10 – Principles and Practice Using C++

file input calculator

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 10 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 10 Exercise 10 #include "std_lib_facilities.h" const char let = ‘#’; const char quitProg =…

concatenating files

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

roman numerals calculator

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 7 Using std_lib_facilities.h by Bjarne Stroustrup. My project includes the following files: p377_7_romanIntMain.cpp my main cpp file p377_7_romanIntClass.h my roman integer class header file p377_7_romanIntMain.cpp my main cpp file [code language=”cpp”]…

roman integer class 1.0

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 10 Exercise 6 Using std_lib_facilities.h by Bjarne Stroustrup. My project includes the following files: p377_6_romanIntMain.cpp my main cpp file p377_6_romanIntClass.h my roman integer class header file p377_6_romanIntMain.cpp my main cpp file [code language=”cpp”]…

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;…