June 2017
Intermediate to advanced
532 pages
12h 59m
English
In this section, we will read a stream of words from the standard input. All unique words are put into an std::set instance. This way we can then enumerate all unique words from the stream.
#include <iostream> #include <set> #include <string> #include <iterator>
using namespace std;
int main() { set<string> s;
Read now
Unlock full access