1 | initial version |
Just a quick tip, when dealing with arguments, make sure you know how the argv and argc values actually work.
Argc gives you the amount of arguments that were passed to the algorithm.
Argv consists of an array of parameters, stored as char arrays, with the executable name as first parameter on the 0 index. Knowing that you will be able to handle it all in the feature.
Indeed, in your case, the solution proposed by @berak is correct.