June 2017
Intermediate to advanced
532 pages
12h 59m
English
We will implement a program that opens a file (which might fail), and then we'll read an integer out of it (which might fail, too). We do this with activated exceptions and then we see how we can handle those:
#include <iostream> #include <fstream> #include <system_error> #include <cstring> using namespace std;
Read now
Unlock full access