I have a program that reads hard-coded file-path and I want to make it read file-path from command line instead. For that purpose I changed the code like this:
#
No need to upvote this. It would have been cool if Benjamin Lindley made his one-liner comment an answer, but since he hasn't, here goes:
std::vector
If you don't want to include argv[0]
so you don't need to deal with the executable's location, just increment the pointer by one:
std::vector