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:
#
#include std::string commandLineStr= ""; for (int i=1;i