I know that to use command line arguments I have to do this.
int main(int argc, char* argv[])
Now, most of the documentation I read about accepting command line arguments explains the situation something like this:
Command line arguments are specified after the program name in command line operating systems, such as DOS or Linux, and are transferred to the program from the operating system.
So, the only way I know to open my program is to open it normally, as I would, either start debugging or open an exe file
Now, it seems that to use command line arguments, you need to open the program in different ways using Command-Line (for example, DOS / Command Prompt), and then write the arguments after it.
So my question is:
How can I open my program using the command line and how can I enter arguments after the program name?
source share