Complete official instructions here: NetBeans for C++ install
#include <iostream> using namespace std; int main() { cout << "Hello, world." << endl; }