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

  1. //---------------------------------------------------------------------------
  2. #include <condefs.h>
  3. #include <conio.h>
  4. #include <iostream.h>
  5. #pragma hdrstop
  6.  
  7. //---------------------------------------------------------------------------
  8. //
  9. // We comment out the argc and argv variables to avoid
  10. // compiler warnings.
  11. //
  12. int main(int /*argc*/, char /***argv*/)
  13. {
  14.   char str[] = "This is a string.";
  15.   cout << str << endl;
  16.   str[7] = '\0';
  17.   cout << str << endl;
  18.   cout << endl << "Press any key to continue...";
  19.   getch();
  20.   return 0;
  21. }
  22. //---------------------------------------------------------------------------
  23.  
  24.