00001 #include "tdyn.h" 00002 00003 #define WHICH tdyn 00004 00005 main(int argc, char** argv) 00006 { 00007 int n = 1000; 00008 00009 extern char *poptarg; 00010 char* params = "n:"; 00011 int c; 00012 00013 while ((c = pgetopt(argc, argv, params)) != -1) 00014 switch(c) { 00015 case 'n': n = atoi(poptarg); 00016 break; 00017 case '?': params_to_usage(cerr, argv[0], params); 00018 get_help(); 00019 exit(0); 00020 } 00021 00022 cerr << "pause..." << flush; 00023 char tmp; 00024 cin >> tmp; 00025 00026 for (int i = 0; i < n; i++) { 00027 WHICH *b = new WHICH(NULL, NULL, false); 00028 } 00029 00030 cerr << "pause..." << flush; 00031 cin >> tmp; 00032 }