Insert variable directly into stringTry this: [code] int ht {10}; string e {"FT"+std::to_string(ht)}; [/code]
Why does emplacement allow you to discard constThis code only compiles in [b]C++17[/b] or higher standard.
Searching the biggest value of 'H' shaped regions in a matrixSee the following solution. [code] #include <iostream> #include <vector> #include <cassert> #includ...
Destructor crashing program for custom vector class because of overloaded = operatorWithout minimum reproducible code it is hard to locate this bug. I guess that may be some kind of so...
Reading large values from text You can code it in the following way ( requires C++14 ): [code] #include <iostream> #include <fstr...