2001: A Space Odyssey

#include <string>
#include <iostream>

enum people
{
    eDave;
}

class HAL9000
{
public:
    HAL9000 () {}
    ~HAL9000() {}
   
    std::string askQuestion(people person)
    {
        if (person == people::eDave)
            return "I can't do that dave";
    }
}

int main()
{
    HAL9000 hal9000();
   
    std::cout << hal9000.askQuestion(people::eDave) << std::endl;
   
    return 0;
}
Vote up this code1