Category Chapter 03 – Principles and Practice Using C++

sorting strings

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 3 Exercise 7 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 3 Exercise 7 #include "std_lib_facilities.h" int main() { string word1 = " ", word2…

sorting integers

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 3 Exercise 6 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 3 Exercise 6 #include "std_lib_facilities.h" int main() { int val1, val2, val3; int smallest…

double operations

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 3 Exercise 5 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 3 Exercise 5 #include "std_lib_facilities.h" int main() { double val1, val2; cout << "enter…

integer operations

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 3 Exercise 4 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 3 Exercise 4 #include "std_lib_facilities.h" int main() { int val1, val2; cout << "enter…

unsafe conversion

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 3 Try This Page 81 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 3 Try This Page 81 #include "std_lib_facilities.h" int main() { cout <<…