-
Overview about command line parameters
Command-line parameters are passed to a program at runt-time by the OS when the program is requested by another program, such as a command interpreter ("
shell") like cmd.exe on WIndows orbashon Linux and OS X.The user types a command and the shell calls the OS to run the program.
The uses for command-line parameters are various, but the main two are:
- Modifying program behaviour - command-line parameters can be used to tell a program how you expect it to behave;
- Having a program run without user interaction - this is especially useful for programs that are called from scripts or other programs;
-
The command-line
Adding the ability to parse command-line parameters to a program is very easy. Every C and

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



