How can I identify command line parameters my program was started with?
1
Expert's answer
2010-08-09T10:33:42-0400
To do this, you should check the variables argc and argv which contain respectively the number and the values of the parameters: int main(int argc, char* argv[]){}. Argument with index 0 is the name of the running program. The following values are the parameters of the program starting. For example:
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments