C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 01-26-2006, 03:09 PM   #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;
}
year2038bug is offline   Reply With Quote
Old 01-26-2006, 08:11 PM   #2
Registered User
 
Join Date: Dec 2005
Posts: 50
Rofl
what3v3r is offline   Reply With Quote
Old 01-26-2006, 09:09 PM   #3
 
Join Date: May 2005
Posts: 970
That stuff belongs in a header file.


dumbass.
__________________
argus triad mingus
BobMcGee123 is offline   Reply With Quote
Old 01-26-2006, 09:21 PM   #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.)
Jeremy G is offline   Reply With Quote
Old 01-26-2006, 09:51 PM   #5
Dae
Deprecated
 
Dae's Avatar
 
Join Date: Oct 2004
Location: Canada
Posts: 1,032
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
Dae is offline   Reply With Quote
Old 01-26-2006, 10:05 PM   #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 *)
Blackroot is offline   Reply With Quote
Old 01-26-2006, 10:12 PM   #7
Dae
Deprecated
 
Dae's Avatar
 
Join Date: Oct 2004
Location: Canada
Posts: 1,032
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
Dae is offline   Reply With Quote
Old 01-27-2006, 10:35 AM   #8
Anti-Poster
 
Join Date: Feb 2002
Posts: 1,241
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.
__________________
Rule #1: Every rule has exceptions
pianorain is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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