How do I access command-line arguments?

Showing Answers 1 - 2 of 2 Answers

Santosh

  • Jul 20th, 2005
 

1. using Argv and Args parameters.....from main() 
2. By LPSRT lpCmdLine String in Winmain()

  Was this answer useful?  Yes

Sibin K C

  • Aug 8th, 2005
 

Command line arguments can be accessed by using a string type and integer type variables as the main function arguments. The string includes all what u typed in the command line(eg:hello.exe jijo nijesh). The int variable shows the no of words in it.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions