There's an example in the link tricxta posted a few posts above...
PHP Code:
using namespace std;
alongside the Qt library.
Qt has a member "endl" and so does "std", therefore when outputting endl to std::cout, it spat out some weird number. As far as c++ goes, using an entire namespace is a horrible idea, and is frowned upon by most professional developers.