#include <iostream>

using namespace std;


int main(int argc, char* argv[])
{
    
    cout << "Executable file name is : " << argv[0] << endl;

    for(size_t k=1; k<argc; k++)
        cout << "Program argument no."<< k << " == " << argv[k] << endl;

    cin.get();

    return 0;
}

Last modified: Monday, 9 January 2012, 11:00 PM