Learn Finance C++, Lesson 10, Introducing ARGC and ARGV and command line entry
Andy009Duncan
Many times we would prefer to enter varying parameters into a program without necessarily having to type them in each time. We can do that, when we run a program from the command line, by taking advantage of two special arguments which go into the main() function of any C++ program. The first is ARGC, which is a number telling you how many parameters the program has. It is always at least one, because the name of the executable program itself is always the first program parameter. If we add any more program parameters on the command line, ARGC increases. The second parameter is a pointer to a special array, called ARGV, which contains all the program parameters, as well as the executable program name at the start of the list. Watch the lesson for more details.
http://andyjamesduncan.wordpress.com
Finished code block:
http://andyjamesduncan.wordpress.com/2013/01/17/learn-finance-c-lesson-10-introducing-argc-and-argv-and-command-line-entry/ ... https://www.youtube.com/watch?v=jZiIc2bRqjs
57166973 Bytes