以文本方式查看主题

-  一个人客栈  (http://www.ygrclub.com)
--  『网情悠悠』  (http://www.ygrclub.com/bbs/list.asp?boardid=11)
----  人类  (http://www.ygrclub.com/dispbbs.asp?boardid=11&rootid=2638&id=2638)


--  作者:绿野仙踪
--  发布时间:2002-3-20 21:34:07

--  人类
上帝创造人的时候写下了如下程序,,(C++版)
人只是个对象,有自己的属性,方法,和事件,
这在如下人的类的定义中能找到答案

class human:public CObject
{
public:
  double height;
  double weight;
  int face;
  ...
public:
  void condition()
   {
     if(蚊子咬&&喝醉酒&&失恋&&兴奋过度&&4级没过&&.....)
       cry();
     else if(美女看一眼&&拣到5块钱&&情敌失恋&&国家队1:1,刷卡&&食堂免费用餐&&.....)
      laugh();
   }
  void  ???()
  {
   ???????
   .......
  }
  CString laugh()
  {
  if(sexy= =man)
   return "haha,haha,hahahahaha";
  else if(sexy= =woman)
  {
  return "xixixixi,hehehe,,";
  }
  else
 {
  return "人妖,精神受到压抑,无表情";
  }
 }
 CString cry()
 {
  if(sexy= =man)
   {
     if(sexy= =真男人)
     return "无声“;
    else
     return "人活的好累啊,5555,好想哭啊,哇啊..";
   }
  else if(sexy= =woman)
  {
  if(sexy!=女强人)
   return "抱着我好吗,55555555,"
  else
  return "谁说女人不行啊,哼,        〈黯然落泪〉";
 }
    }
 void ??()
 {
 .......
  }
 .......
};


版权所有: Inncn.Com 一个人客栈 旧事回顾 联系:小刀
页面执行时间:101.563毫秒