# CategoryChapter 11 – Principles and Practice Using C++

## sort and count numbers

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 16 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 16 #include "std_lib_facilities.h" int main() try { cout << "enter name for…

## number matrix

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 15 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 15 #include "std_lib_facilities.h" int main() try { cout << "enter name for…

## char classification [counting letters, points, commas and white-spaces]

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 14 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 14 #include "std_lib_facilities.h" int main() try { cout << "enter name for…

## reverse word order in text file

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 13 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 13 #include "std_lib_facilities.h" int main() try { cout << "enter name for…

## reverse chars of string in text file

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 12 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 12 #include "std_lib_facilities.h" void reverseWord(string& w) { string temp; for (int i…

## string split 1.1

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 11 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 11 #include "std_lib_facilities.h" vector<string> split(const string& s, const string& w) { vector<string>…

## string split 1.0

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 10 Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 10 #include "std_lib_facilities.h" vector<string> split(const string& s) { vector<string> tempVec; string temp;…

## binary write

Bjarne Stroustrup “Programming Principles and Practice Using C++” Chapter 11 Exercise 9 Write Using std_lib_facilities.h by Bjarne Stroustrup. [code language=”cpp”] // Philipp Siedler // Bjarne Stroustrup’s PPP // Chapter 11 Exercise 9 Write #include "std_lib_facilities.h" int main() try { //open an istream…