Changeset 80


Ignore:
Timestamp:
Mar 14, 2005 5:47:13 PM (17 years ago)
Author:
forrest
Message:

out error if no parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Samples/sample2.cpp

    r69 r80  
    115115      nGoodParam=1;
    116116  }
    117   if (nGoodParam!=argc-2) {
     117  if (nGoodParam!=argc-2&&argc>=2) {
    118118    printf("Usage <file> [preprocess] [time <minutes>] or <file> <minutes>\n");
    119119    exit(1);
Note: See TracChangeset for help on using the changeset viewer.