GIRLS.CPP (funtime)

This is a discussion on GIRLS.CPP (funtime) within the A Brief History of Cprogramming.com forums, part of the Community Boards category; GIRLS.cpp Class girls class female_professionals { double style; short skirts; long time_to_understand_problems; float mind; void knowledge; char non_co-operative; } class ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    22

    GIRLS.CPP (funtime)

    GIRLS.cpp

    Class girls
    class female_professionals
    {
    double style;
    short skirts;
    long time_to_understand_problems;
    float mind;
    void knowledge;
    char non_co-operative;
    }

    class married_females
    {
    double weight;
    short tempered;
    long gossip;
    float hopes;
    void talk;
    char unstable;
    }

    class engaged_females
    {
    double time_on_phone;
    short attention_on_work;
    long boast;
    float on_cloud_nine;
    void understanding;
    char edgy;
    }

    class newly_married_females
    {
    double dinner_invitation;
    short time_at_work;
    long lunch_break;
    void bank_balance;
    char hen_pecking;
    }

    class husband_wife_professionals
    {
    double income;
    short tempered;
    long time_to_see_each_other;
    void love_life;
    char money_making;
    }

    class beautiful_city_girl
    {
    double boyfriends;
    short affairs;
    long stories;
    void brains;
    char flirt;
    }

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    50
    Rofl

  3. #3

    Join Date
    May 2005
    Posts
    1,041
    That stuff belongs in a header file.


    dumbass.
    I'm not immature, I'm refined in the opposite direction.

  4. #4
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    Code:
    Class girls
    Wheres the rest of the declaration?
    Code:
    class female_professionals
    {
    double style;
    short skirts;
    long time_to_understand_problems;
    float mind;
    void knowledge;
    char non_co-operative;
    }
    No hyphens in variable names.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  5. #5
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by Jeremy G
    Code:
    Class girls
    Wheres the rest of the declaration?
    Code:
    class female_professionals
    {
    double style;
    short skirts;
    long time_to_understand_problems;
    float mind;
    void knowledge;
    char non_co-operative;
    }
    No hyphens in variable names.
    And...
    No semi-colon ending the classes.
    Bad indentation (that was a stretch).
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  6. #6
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Code:
    Class girls {
     public:
      //Uhh... Missing code yes?
    };
    
    class female_professionals {
     double style;
     short skirts;
     long time_to_understand_problems;
     float mind;
     void knowledge;
     char non_co_operative;
    }
    
    class married_females {
     double weight;
     short tempered;
     long gossip;
     float hopes;
     void talk;
     char unstable;
    }
    
    class engaged_females {
     double time_on_phone;
     short attention_on_work;
     long boast;
     float on_cloud_nine;
     void understanding;
     char edgy;
    }
    
    class newly_married_females {
     double dinner_invitation;
     short time_at_work;
     long lunch_break;
     void bank_balance;
     char hen_pecking;
    }
    
    class husband_wife_professionals {
     double income;
     short tempered;
    l ong time_to_see_each_other;
     void love_life;
     char money_making;
    }
    
    class beautiful_city_gir l{
     double boyfriends;
     short affairs;
     long stories;
     void brains;
     char flirt;
    }
    Funny.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  7. #7
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by Blackroot
    Code:
    Class girls {
     public:
      //Uhh... Missing code yes?
    };
    
    class female_professionals {
     double style;
     short skirts;
     long time_to_understand_problems;
     float mind;
     void knowledge;
     char non_co_operative;
    }
    
    class married_females {
     double weight;
     short tempered;
     long gossip;
     float hopes;
     void talk;
     char unstable;
    }
    
    class engaged_females {
     double time_on_phone;
     short attention_on_work;
     long boast;
     float on_cloud_nine;
     void understanding;
     char edgy;
    }
    
    class newly_married_females {
     double dinner_invitation;
     short time_at_work;
     long lunch_break;
     void bank_balance;
     char hen_pecking;
    }
    
    class husband_wife_professionals {
     double income;
     short tempered;
    l ong time_to_see_each_other;
     void love_life;
     char money_making;
    }
    
    class beautiful_city_gir l{
     double boyfriends;
     short affairs;
     long stories;
     void brains;
     char flirt;
    }
    Funny.
    Did you just reformat his code, screw up the long in husband_wife_professionals, the class beautiful_city_girl, forget to add the semi-colons on the rest of the classes, and spell class with a capital C?

    Very funny. No wait, thats TBS.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  8. #8
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    I like how everything is private. Apparently none of the above classes can talk to each other about anything. Unfortunately, the void datatype makes it difficult to actually compile.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21