LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command line parse?? (https://www.linuxquestions.org/questions/linux-newbie-8/command-line-parse-908089/)

shanky 10-14-2011 12:06 AM

command line parse??
 
hiii
i am trying to modify a code i want to simulate,but i dont quite understand what this means CommandLine to parse command-line arguements ??
if someone can enlighten me on this subject..it would be of great help to me..
thanks..

macemoneta 10-14-2011 12:25 AM

To parse means to break down to component parts. So parsing command-line arguments means to split apart the options and arguments.

shanky 10-14-2011 12:33 AM

and parsing is done by these two lines(in C++)??
" CommandLine cmd;
cmd.Parse (argc, argv);"
and where would i have to place them in my code??

macemoneta 10-14-2011 12:39 AM

You place them in your code where you want to process the command arguments. There are many examples in Google for you to look at.

shanky 10-14-2011 12:45 AM

thank you !!


All times are GMT -5. The time now is 10:46 AM.