The problem is your program probably only does the following:
1) Enters code to execute
2) Prints "Hello World!"
3) Exits...
I.e. somethng like the following:
Code:
#include <iostream>
using namespace std;
int main(){
cout << "Hello World!";
}
Now, console programs compiled with Bloodshed are automatically terminated when code execution is complete. So, you need a way to make the program wait after you've printed "Hello World!"...
One way is to make it wait until you push a button. Here's how that can look in Bloodshed:
Code:
#include <iostream>
#include <conio.h>
using namespace std;
int main(){
cout << "Hello World!";
getch(); // wait for user to push a key
}
Edit:
Bah, too late... and I guess the above answers are somewhat better if you're just starting off... =)