Thread: Design Books

  1. #16
    Registered User kroiz's Avatar
    Join Date
    Jun 2007
    Posts
    116

    Angry

    The media is making us look at all women as sex objects
    Code:
    class sex
    {
        void doit()
    }
    
    class Women : public sex
    {
        void feel();
        void desire();
        void bleed();
    }
    
    class Men : public sex
    {
        void hunt();
    private:
        void feel();
        void desire();
    }
    
    class Media
    {
        friend class Men;    // cause it's a men world
        // slice a woman to make a sex object
        Sex publish(Women* w)
        {
            return w;
        }
    }

  2. #17
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Umm. It's a book cover?
    Last edited by prog-bman; 09-07-2007 at 05:07 PM.

  3. #18
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    errata

    class members are private by default. So you would have to specify all of the women's members with public, and the men's private: is redundant.

  4. #19
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    todo

    doit should return a value.

  5. #20
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Oh god.

  6. #21
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    sorry.

  7. #22
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    The question is: what value should it return?

  8. #23
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I'm sure a double.

  9. #24
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Hmmm it could also return this
    Code:
    class Child{
    public:
        Child()
        {
             //Oh boy
             mMonthlyCostIncrease = 600.00;
        }
    private:
        double mMonthlyCostIncrease;
    };
    
    class Sex{
    public:
         Child DoIt()
         {
                return Child();
         }
    };

  10. #25
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Quote Originally Posted by indigo0086 View Post
    I'm sure a double.
    hard limits are bad.

    basic_ostream<double>

  11. #26
    Registered User kroiz's Avatar
    Join Date
    Jun 2007
    Posts
    116
    Quote Originally Posted by indigo0086 View Post
    errata

    class members are private by default. So you would have to specify all of the women's members with public, and the men's private: is redundant.
    I know that was intensional.
    men feelings and desires are private and no men would share them!

  12. #27
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Basically you should switch class with struct.

  13. #28
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    I'm not certain but I don't think making babies is what W was talking about ...

  14. #29
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Back on topic a bit, I went and got it, and wow, has some REALLY cool stuff, but so far about I feel like it is over my head quite a bit, hopefully the second time though will make everything click a lot better, the recursive template processing is very cool though. Many thanks for the recommendation.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What are some good books on C?
    By php111 in forum C Programming
    Replies: 9
    Last Post: 10-01-2008, 06:16 AM
  2. any comments about a cache design?
    By George2 in forum C Programming
    Replies: 6
    Last Post: 09-14-2006, 12:53 PM
  3. Implementing Inheritence into your design
    By bobthebullet990 in forum C++ Programming
    Replies: 6
    Last Post: 08-05-2006, 04:40 PM
  4. Books Books Books
    By aresashura in forum Game Programming
    Replies: 5
    Last Post: 12-28-2001, 09:08 PM