Category Chapter 04 – Principles and Practice Using C++

series [min max mode]

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 17 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 17 #include "std_lib_facilities.h" int main() try { vector<int> seriesNum; int singleNum; int…

series [mode number]

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 16 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 16 #include "std_lib_facilities.h" int main() try { vector<int> seriesNum; int singleNum; int…

Sieve of Eratosthenes

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 4 Exercise 13 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PP // Chapter 4 Exercise 13 #include "std_lib_facilities.h" #include "math.h" int main() { int max = 100;…