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:
#
It's simple. Just do this:
#include #include #include int main(int argc, char *argv[]) { std::vector argList; for(int i=0;i
@Benjamin Lindley You are right. This is not a good solution. Please read the one answered by juanchopanza.