TheMillionDollarMan
Programmer
Does anyone have some code snipet for this?
or
A key word I can use in the MS help?
Thanks
VC++ 6.0
Win2K
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <iostream>
using namespace std;
int
main(int argc, char **argv)
/* argc is total number of argument passed into this program. while argv is a pointer pointing to all the argument character string passed into here. the first argument is always the program name itself. */
{
// print out the total number of argument to console.
cout << argc << endl;
for (register int i = 0; i < argc; i++)
/* print out every argument passed. the first argument must be the program name (retrived by argv[0] or else.). */
cout << "argument [" << i << "] == " << argv[i] << endl;
return 0;
}