User profile: TomCPP

User info
User name:TomCPP
History
Joined:
Number of posts:32
Latest posts:

Insert variable directly into string
Try this: [code] int ht {10}; string e {"FT"+std::to_string(ht)}; [/code]

Why does emplacement allow you to discard const
This code only compiles in [b]C++17[/b] or higher standard.

Searching the biggest value of 'H' shaped regions in a matrix
See the following solution. [code] #include <iostream> #include <vector> #include <cassert> #includ...

Destructor crashing program for custom vector class because of overloaded = operator
Without 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...