I have writtten a program and it is compiled smoothly. However when I try to run the program, the console just comes out a while and then closes. I don't even have chance to type in commands and the commands will be recorded by **argv.
int main(int argc, char **argv)
{
.............
.............
}
May I know what should I do?