User profile: JLBorges

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

Counting numbers within a Vector
[code]#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <numeric>...

function that reads string, converts it to int array, flips number in array.
[code]#include <iostream> #include <string> #include <algorithm> constexpr std::size_t MAX_DIGITS =...

\n attached to final string in delimited getline?
Line 33: [code] // ... // ch >> d.supp1 >> d.supp2; // line 33 ch >> d.supp1 [b]>> ch[/b]...

Recommend a text book on Templates
Classic (2002): 'C++ Templates: The Complete Guide' by Josuttis and Vandevoorde https://www.amazon.c...

Defining a 2D array in a separate file
Assuming that there is no other access to (initialised) elements of the array before the [tt]main()[...