heh...
it outputs to a window because thats what your program is sposed to do..
to make the window stay open do:
Code:
#include <cstdlib>
int main(){
//...
//..
system("pause"); // note this
return 0;
}
fyi, a good c/c++ dev system on windows is "bloodshed"
www.bloodshed.net if i remember correctly...