Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++...huh what?!

Name: Anonymous 2009-07-12 7:28

Why won't this little app work? What's wrong? C++ is just too fucking complicated jeez

#include <iostream>
using namespace std;

class abstract {
public:
    void init() { print(); }
    virtual void print() = 0;
    abstract() { init(); }
};

class abc : public abstract {
public:
    virtual void print() { cout << "I am abc" << endl; }
};

int main(int argc, char* argv[]) {
    abc test;
    return 0;
}

Name: Anonymous 2009-07-13 16:37

>>15
Maybe that's because it's your post.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List