1 #include <stdio.h> 2 3 main(int argc, char *argv[]) 4 { 5 int i = 0; 6 for(i; i < argc-1; i++) 7 { 8 printf("NO %d %s\n",i+1, argv[i+1]); 9 } 10 }
原文转自:http://www.ltesting.net