Reputation: 105
I am trying to run my program but I am not really sure how to do it.
I am working in visual studio and I have to take a file as the command line argument. So this is what I have done.
int main (int argc, char *argv[] ){
ifstream inFile( argv[1] );
I not sure tho how to call it from the command window in Visual Studio. Any help?
Thank you
Upvotes: 0
Views: 29
Reputation: 2119
In the solution explorer, go to your project and right click it, then choose Properties. On the Debug tab, you can provide arguments.
Upvotes: 1