Add a function to accept input at the end of your code. What it's doing is it's running your code from start to finish like its supposed to, but once it displays the output it closes because there is no more code left for it to run. It's the same thing that would happen if you went to start >> run and then typed ping xxx.xxx.xxx.xxx.
Last edited by Demosthenes; 2006-04-03 at 12:22 AM.