#include "stdafx.h" #include using namespace std; // In the visual studio environment, go to Debug --> Properties // Choose Debugging in the left pane, and in front of "Command Arguments" // type your arguments such as: // 123 bluhbluh -9.78 int main(int argc, char *argv[]) { cout << "there are " << argc << " arguments." << endl; for (int i = 1; i < argc; i++) cout << argv[i] << endl; return 0; }