English

Written in English.

Help! What's wrong with this C++ code ?

Body

Why won't this shit compile ? What's wrong ? I don't get it!

#include <vector>
#include <iostream>

using namespace std;

class foo {
public:
   virtual void write();
};

class fubar : public foo {
public:
  void write() { cout << __PRETTY_FUNCTION__ << endl; }
};

class fubar2 : public foo {
public:
  void write() { cout << __PRETTY_FUNCTION__ << endl; }
};