I created a simple cpp file with no errors (hello world project) but it won't launch.

#include <iostream>
using namespace std;

int main() {
    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    return 0;

here is the video of it: Click Here

Recommended Answers

All 4 Replies

I don't have much experience with Eclipse, but I've seen somne IDE's that don't pause the console after main is finished. On a small app like this, it will look like it didn't run at all. Basically though it has run and finished just too fast for you to see it. If this is the case, you'll either have to look at pausing the app before main finishes or use a different IDE, such as Code::Blocks, which does pause the console automatically.

I was using code::block but I run into "Permission denied" problems with it.

That probably has something to do with the folder you're storing the the source code in. Try making a folder, probably in the root drive, and making that the default for the source code.

Try adding cin.get() before return 0..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.