So I picked up The Programming Language and I'm using Dev-C++ as my IDE. I'm pretty sure I'm doing the Hello World program right but I've got a few questions. The cmd window is only there for a split second and I don't actually get to see it say Hello World. Is this supposed to happen?
>>4
I remember you could do it on a per-executable basis in Properties for MS-DOS executables, but I don't know if you can set the default or even do it individually for Windows console exes at all.
That being said, you can just run them from a terminal (that's cmd.exe on Windows), use something like getchar() to make it wait until a key is pressed or even system("pause").
Name:
Anonymous2008-11-27 19:48
#include<iostream>
int main(void){
std::cout<<"Hello noob!";
std::cin.get();
return(0);
}