home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Info / TeachU14 / SAMS / Code / Day01 / argstest.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-08  |  563 b   |  19 lines

  1. //---------------------------------------------------------------------------
  2. #include <condefs.h>
  3. #include <conio.h>
  4. #include <iostream.h>
  5. #pragma hdrstop
  6.  
  7. //---------------------------------------------------------------------------
  8. int main(int argc, char **argv)
  9. {
  10.   cout << "argc = " << argc << endl;
  11.   for (int i=0;i<argc;i++)
  12.     cout << "Parameter " << i << ": " << argv[i] << endl;
  13.   cout << endl << "Press any key to continue...";
  14.   getch();
  15.   return 0;
  16. }
  17. //---------------------------------------------------------------------------
  18.  
  19.