Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 14 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 14 #include "std_lib_facilities.h" class test { string label; public:…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 13 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 13 #include "std_lib_facilities.h" struct stringVec { vector<string> vs; vector<int>…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 12.1 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 12.1 #include "std_lib_facilities.h" vector<string> alphabet{ "a","b","c","d", "e","f","g","h", "a","b","c","d", "e","f","g","h"…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 12.0 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 12.0 #include "std_lib_facilities.h" vector<string> alphabet{ "a","b","c","d", "e","f","g","h", "i","j","k","l", "m","n","o","p",…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 11 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 11 #include "std_lib_facilities.h" vector<int> myVec{ 5,2,1,6,4 }; struct extremes…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 10 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 10 #include "std_lib_facilities.h" vector<int> myVec{ 1, 2, 5, 4,…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 9 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 9 #include "std_lib_facilities.h" vector<double> price; vector<double> weight; class indexCalc…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 7 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] //Philipp Siedler //Bjarne Stroustrup’s PP //Chapter 8 Exercise 7 #include "std_lib_facilities.h" vector<string> names; vector<int> ages; class NameAge { vector<string> n;…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 6 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 6 #include "std_lib_facilities.h" vector<string> myVec{ "a","b","c","d","e","f","g","h","i","j" }; vector<string> myVecRev;…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 5 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 5 #include "std_lib_facilities.h" vector<int> myVec{ 0,1,2,3,4,5,6,7,8,9 }; vector<int> myVecRev;…