Netbeans C++ Program has no terminal output

2.2k Views Asked by At

It's not a weird program. It's a simple C++ Hello World program, and for whatever reason there is no output to the terminal either in the terminal or in the output window. Here's my "code".

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    cout << "Hello there peeps!";
    cout << endl;
    system("pause");
    return 0;
}

Using Netbeans 6.9 on Ubuntu 11.04 Natty

2

There are 2 best solutions below

1
On

Try installing xterm, that worked for me. (On fedora 18, but Ubuntu should be similar)

sudo apt-get install xterm

or

sudo yum install xterm
6
On

You may try this:

Project properties -> Run -> Console Type and select Standard Output there.

If this is already selected test with Internal Terminal.