User profile: JLBorges

User info
User name:JLBorges
History
Joined:
Number of posts:6815
Latest posts:

In-place construction in container
Standard containers support construction in situ with [tt]emplace[/tt] functions. For instance: http...

map<string>, vector<string>> myMap
[tt]std::map[/tt] where the mapped type is a sequence of vectors is the other option. [code]#includ...

Strncpy
To make it compilable, put a semicolon at the end of line 14. [code]c = *s++ [b];[/b][/code] The lo...

map<string>, vector<string>> myMap
[code]#include <iostream> #include <map> #include <vector> #include <string> #include <iomanip> // ...

Vector or C-style array?
> and it doesn't appear to be describing a standard function It is a function with a special name [...