Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Exercise 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 9 Exercise 4 /* struct X { void f(int x) { struct Y…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 9 Exercise 3 #include "std_lib_facilities.h" class Name_pairs { public: vector<string> names; vector<int> ages; void…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Exercise 2 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 9 Exercise 2 #include "std_lib_facilities.h" class Name_pairs { private: vector<string> names; vector<int> ages; public:…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Exercise 1 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 9 Exercise 1 //Operations of a Toaster /* ///Data: Energie (Plugged in/out) Heat (On/Off)…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Drill 5 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 9 Drill 5 #include "std_lib_facilities.h" class Date { public: enum Month { jan =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Drill 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 9 Drill 4 #include "std_lib_facilities.h" class Date { public: enum Month { jan =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Drill 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 9 Drill 3 #include "std_lib_facilities.h" class Date { public: int y, m, d; Date(int…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Drill 2 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 9 Drill 2 #include "std_lib_facilities.h" struct Date { int y, m, d; Date(int y,…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 9 Drill 1 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 9 Drill 1 #include "std_lib_facilities.h" struct Date { int y; int m; int d;…