Get parameter from exe in C++ -
as know query string in web. it's key/value go website url ex: abc.com?myname=stack
for example in php, if want value of myname, $_get['myname']
so, in c++, how can it?
in c# pass parametter *.exe file ( exe file c++ code ). in c++ code, how parametter value .
have no idea situation, surely have realize parameters need?
- if need arguments command line, simple use
char** argv
variable. in complicated cases can use gnu getopt or boost::program_options (the last cross-platform); - if trying access environmental variables, use standard
getenv
functions.
Comments
Post a Comment