Цитата(archimed7592 @ 17.1.2007, 21:35 ) | | не всегда...бывает, что без пути - только имя программы... |
Это в каких случаях?
Конечно все зависит от компилятора. На примере Билдера:
| Цитата | Three parameters (arguments) are passed to main by the Borland C++Builder startup routine: argc, argv, and env.
argc, an integer, is the number of command-line arguments passed to main, including the name of the executable itself. argv is an array of pointers to strings (char *[]).
- argv[0] is the full path name of the program being run. ^^^^^^ - argv[1] points to the first string typed on the operating system command line after the program name. - argv[2] points to the second string typed after the program name.
|
|