Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 8 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 8 #include "std_lib_facilities.h" void replace_apostrophes(string& _w, vector<string>& _s_words) { if (_w ==…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 7 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 7 #include "std_lib_facilities.h" void replace_apostrophes(string& _w) { if (_w == "can’t" ||…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 6 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 6 #include "std_lib_facilities.h" void calculate() { while (cin) { string s; string…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 5 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 5 #include "std_lib_facilities.h" void calculate() { while (cin) { string word; char…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 4 #include "std_lib_facilities.h" void convert() { char quit; int val; char prefix_zero;…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 3 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 2 #include "std_lib_facilities.h" void lower_case(string& _text) { for (char& x : _text)…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 2 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 2 #include "std_lib_facilities.h" void lower_case(string& _text) { for (char& x : _text)…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 1 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 1 #include "std_lib_facilities.h" void to_lower_case_out() { string iname = "input;; ifstream ifs{…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Drill 10 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Drill 10 #include "std_lib_facilities.h" int main() try { int width = 25; cout…
Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Drill 9 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Drill 9 #include "std_lib_facilities.h" void print_num(double _num) { int width = 12; cout…