|
Posted: Sun Jul 31, 2005 22:54 |
|
Posts: 3 |
#include <cstdio>
#include <string>
#include <vector>
using std::string;
using std::vector;
main(int argc, char *argv[]) {
char cmd_quit[] = "quit", cmd_start[] = "start";
char usr_input[(strlen(cmd_quit)+strlen(cmd_start))], usr_input_quit[strlen(cmd_quit)], usr_input_start[strlen(cmd_start)];
if (argc >1) {
int argcc = 1; /* argcc as in "argc check" */
int mx_argc = argc-1; /* mx_argc as in "max argc" */
int vlength = 1; /* vlength as in "vector length" */
vector<string> exec_v;
while (argcc <= argc) {
exec_v.push_back(argv[argcc]);
argcc++;
}
} else {
printf("else here");
printf("n");
}
printf("%in", argc);
return 0;
}
|
-------------------------------- Remember, there is no quote.
|
|
|
[View Profile] |