Hi thanks for your quick reply,
I am a newbie to c++ programming. The last time i tried programming was 7 years back.
May I know how this works?
Code:
std::cout << "parameter " << i << " is " << argv[i] << std::endl;
I tried to compile but it gave me a error C2601: 'main' : local function definitions are illegal
here is my code
Code:
#include "stdafx.h"
#include <iostream>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
int main ( int argc, char *argv[] )
{
for ( int i = 1 ; i < argc ; i++ )
{
std::cout << "parameter " << i << " is " << argv[i] << std::endl;
}
}
return 0;
}
really appreciate for the help