Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 11.1 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 11.1 #include "std_lib_facilities.h" vector<string> dayName; vector<int> dayVal(7, 0); void init_dayName() { dayName…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 11.0 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 11.0 #include "std_lib_facilities.h" vector<string> names; string nameTemp; vector<int> ages; int ageTemp; int…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 10 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 10 #include "std_lib_facilities.h" const char let = ‘#’; const char quitProg =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 9 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 9 #include "std_lib_facilities.h" const char let = ‘#’; const char quitProg =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 8 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 8 /* Simple calculator Revision history: Revised by Philipp Siedler May 2017…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 7 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 7 #include "std_lib_facilities.h" const char let = ‘#’; const char quitProg =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 6 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 6 #include "std_lib_facilities.h" const char let = ‘#’; const char exitprog =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 5 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 5 #include "std_lib_facilities.h" const char let = ‘#’; const char exitprog =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 4 #include "std_lib_facilities.h" const char let = ‘#’; const char exitprog =…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 7 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 7 Exercise 3 #include "std_lib_facilities.h" struct Token { char kind; double value; string name;…