Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 4 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 4 #include "std_lib_facilities.h" vector<int> myVec; string label = "l";…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 3 #include "std_lib_facilities.h" void print(string& _label, vector<int>& _vecInput) {…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 2 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Exercise 2 #include "std_lib_facilities.h" void print(string& _label, vector<int>& _vecInput) {…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Exercise 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 1 #include "std_lib_facilities.h" const char let = ‘#’; const…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Drill 3 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Drill 3 #include "std_lib_facilities.h" namespace X { int var; void…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Drill 2 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Drill 2 #include "std_lib_facilities.h" void swap_v(int a, int b) {…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 8 Drill 1 Using std_lib_facilities.h by Bjarne Stroustrup. main.cpp main file [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 8 Drill 1 #include "myClass.h" int foo; int main() { foo…