2008年8月20日 星期三

現代人的愛情觀

class love {
var $sex;
var $height;
var $weight;
var $money;
var $cup=NULL;
var $id;
var $sexfriends=0;

function love() {}

function man($height,$weight,$money,$id) {
$this- >sex="男";
$this- >height=$height;
$this- >weight=$weight;
$this- >money=$money;
$this- >id=$id;
}

function find($query) {
include_once "worldbase.class.pHp";
$_conn=new worldbase($this- >sex,$this- >height,$this- >weight,$this- >money,$this- >cup,$this- >id);
$this- >sexfriend=$conn->query($query);
}

function getsexfriends() {return $this- >sexfriends;}

function woman($height,$weight,$money,$cup,$id) {
$this- >sex="女";
$this- >height=$height;
$this- >weight=$weight;
$this- >money=$money;
$this- >cup=$cup;
$this- >id=$id;
}

function happyending() {return "Get true love";}

function badending() {return "I am single";}

function god ($height,$weight,$cup=NULL) {
if ($this- >money >66000) {
$this- >sex=$sex;
$this- >height=$height;
$this- >weight=$weight;
$this- >money-=66000;
$this- >cup=$cup;
return "show your identity";
} else return "Get out";
}
}

$a=new love();
$a- >man(156,70,200000,"normal");
$b=new love();
$b- >man(188,120,12,"normal");
$c=new love();
$c- >man(170,50,1200,"normal");
$d=new love();
$d- >man(165,62,33000,"normal");

$w=new love();
$w- >woman(170,90,200000,"G","normal");
$x=new love();
$x- >woman(155,120,18,"A","normal");
$y=new love();
$y- >woman(166,42,44000,"B","normal");
$z=new love();
$z- >woman(167,60,38000,"C","normal");

$a- >find("select woman from Taiwan where (height >150 and height<170)>36 and weight<46) and cup="E";");
$b- >find("select woman from Japan where (height >166 and height<170)>36 and weight<47) and cup="G";");
$c- >find("select woman from Taiwan where (height >166 and height<176)>36 and weight<48) and cup="F";");
$d- >find("select woman from Taiwan where (height >155 and height<165)>36 and weight<52) and cup="B";");

$w- >find("select man from USA where (height >177 and height<200)>70 and weight<90)>400000000;");
$x- >find("select man from France where (height >182 and height<198)>72 and weight<86)>700000000;");
$y- >find("select man from UK where (height >188 and height<200)>70 and weight<90)>350000000;");
$z- >find("select man from Japan where (height >180 and height<190)>70 and weight<90)>370000000;");

if (($a- >getsexfriends())<1)
($a- >god(180,70)=="Get out")? $a- >badending() : else $a- >happyending();
else $a- >happyending();
if (($b- >getsexfriends())<1)
($b- >god(180,70)=="Get out")? $b- >badending() : $b- >happyending();
else $b- >happyending();
if (($c- >getsexfriends())<1)
($c- >god(180,70)=="Get out")? $c- >badending() : $c- >happyending();
else $c- >happyending();
if (($d- >getsexfriends())<1)
($d- >god(180,70)=="Get out")? $d- >badending() : $d- >happyending();
else $d- >happyending();

if (($w- >getsexfriends())<1)
($w- >god(168,42,"C")=="Get out")? $w- >badending() : $w- >happyending();
else $w- >happyending();
if (($x- >getsexfriends())<1)
($x- >god(180,70)=="Get out")? $x- >badending() : $x- >happyending();
else $x- >happyending();
if (($y- >getsexfriends())<1)
($y- >god(180,70)=="Get out")? $y- >badending() : $y- >happyending();
else $y- >happyending();
if (($z- >getsexfriends())<1)
($z- >god(180,70)=="Get out")? $z- >badending() : $z- >happyending();
else $z- >happyending();

沒有留言: