Delete the first return 0 -- your code is not reaching the system("PAUSE") which will let you see the console window's output.
View entire thread