Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 11 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 11 #include "std_lib_facilities.h" int main() { int max = 100; vector<int> seriesNum;…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 10 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 10 #include "std_lib_facilities.h" int main() try { int rndNum; string illegalRndInput; string…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 9 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 9 #include "std_lib_facilities.h" int main() { cout << "Grains on chess board…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 8 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 8 #include "std_lib_facilities.h" int main() { int squareNum = 1; int grainCount…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 7 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 7 #include "std_lib_facilities.h" vector<string> numbers; void initNumbers() { numbers.push_back("zero"); numbers.push_back("one"); numbers.push_back("two"); numbers.push_back("three");…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 6 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 6 #include "std_lib_facilities.h" vector<string> numbers; void initNumbers(){ numbers.push_back("zero"); numbers.push_back("one"); numbers.push_back("two"); numbers.push_back("three"); numbers.push_back("four");…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 5 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 5 #include "std_lib_facilities.h" int main() { double value1 = 0.0; double value2…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 4 #include "std_lib_facilities.h" int main() { int max = 100; int min…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 3 #include "std_lib_facilities.h" int main() { vector<double> distances; double distance; cout <<…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 2 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 2 #include "std_lib_facilities.h" int main() { vector<double> temps; double temp; cout <<…