June 2017
Intermediate to advanced
532 pages
12h 59m
English
We are going to build up a cheap dictionary of one-to-one mappings from English words to their German translations, and store them in std::deque structures. The program will read such a dictionary from a file and one from standard input, and print one large merged dictionary on the standard output again.
#include <iostream> #include <algorithm> #include <iterator> #include <deque> #include <tuple> #include <string> #include <fstream> using namespace std;
using dict_entry = pair<string, string>;
Read now
Unlock full access