Category Chapter 11 – Principles and Practice Using C++

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…

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…

binary read

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

binary input/output

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