工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
楼主: zayfan

人们崇拜我们这些编程的异类

[复制链接]
发表于 2005-6-30 18:48 | 显示全部楼层
public interface IWoman throws SomeException{
    public boolean isBeautiful();
    public boolean hasHusband();
    public int getTall();
    public int getWeight();
    public List thingCanDo();
    public int howDoSheLoveU();
}
19楼,implements 这个接口,要什么样的女人都可以啦。
haha
回复

使用道具 举报

发表于 2005-7-1 02:09 | 显示全部楼层
楼上你的心水Girl是什么?实现下这个接口啊...
回复

使用道具 举报

发表于 2005-7-3 01:04 | 显示全部楼层
哈哈,有趣,

zayfan你继续
回复

使用道具 举报

发表于 2006-7-25 02:29 | 显示全部楼层
翻下旧帖再睡觉……
回复

使用道具 举报

发表于 2006-7-25 18:04 | 显示全部楼层
原帖由 hjack 于 2005-6-29 14:18 发表
确实,在很多同学眼里,我是一个异类,是不是编程的都会这样被认为了???


唉!
唉!
唉……
回复

使用道具 举报

发表于 2006-7-26 11:56 | 显示全部楼层
原帖由 hjack 于 2005-6-30 18:48 发表
public interface IWoman throws SomeException{
    public boolean isBeautiful();
    public boolean hasHusband();
    public int getTall();
    public int getWeight();
    public List thingCanD ...


回应接口,别人给翻译的一个女人信息实例化.

[Serializable]
    public class GrilInfo
    {

        //所有的女人拥有的信息分为三个等级,1为优,2为中,3为劣
        private int washing; //洗衣服
        private int cooking; //煮饭
        private int attending; //服侍男人
        private int ***;      //性感
        private int Tall;     //高度
        private int Weight;   //体重
        private int face;     //脸蛋
        private int skin;     //皮肤
        private int stature;  //身材
        private int rich;    //富有程度
        private int character; //性格

        public GrilInfo() { }   

        public GrilInfo(int washing, int cooking, int attending, int ***, int Tall, int Weight, int face, int skin, int stature, int rich, int character)
        {
            this.washing = washing;
            this.cooking = cooking;
            this.attending = attending;
            this.*** = ***;
            this.Tall = Tall;
            this.Weight = Weight;
            this.face = face;
            this.skin = skin;
            this.stature = stature;
            this.rich = rich;
            this.character = character;
        }

        public int Washing
        {
            get { return washing; }
            set { washing = value; }
        }
        public int Cooking
        {
            get { return cooking; }
            set { cooking = value; }
        }
        public int Attending
        {
            get { return attending; }
            set { attending = value; }
        }
        public int ***
        {
            get { return ***; }
            set { *** = value; }
        }
        public int Tall
        {
            get { return Tall; }
            set { Tall = value; }
        }
        public int Weight
        {
            get { return Weight; }
            set { Weight = value; }
        }
        public int Face
        {
            get { return face; }
            set { face = value; }
        }
        public int Skin
        {
            get { return skin; }
            set { skin = value; }
        }
        public int Stature
        {
            get { return stature; }
            set { stature = value; }
        }
        public int Rich
        {
            get { return rich; }
            set { rich = value; }
        }
        public int Character
        {
            get { return character; }
            set { character = value; }
        }


    }
回复

使用道具 举报

发表于 2006-7-27 00:17 | 显示全部楼层
不错。
我写代码,通常在看到其运行速度比别人得算法快时达到高潮。

可惜,现在被钱蒙了眼睛。没钱没女人啊,更别说是pl女人。

另:写程序和追女孩子没有任何临界区存在,我也拍过很多次拖,说句粗俗的,也上过很多学校的女,但,pl的就没,那是需要m或者很多时间或者很多尊严砸出来的。
回复

使用道具 举报

发表于 2006-7-27 00:44 | 显示全部楼层
阿 hjack  犀利啊 ....
回复

使用道具 举报

发表于 2006-7-27 08:31 | 显示全部楼层
原帖由 大鱼 于 2006/7/26 11:56 发表


回应接口,别人给翻译的一个女人信息实例化.


    public class GrilInfo
    {

        //所有的女人拥有的信息分为三个等级,1为优,2为中,3为劣
        private int washing; //洗衣服
       ...


c sharp 的setter/getter就是比java的简洁...我喜欢...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2025-5-16 00:19

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表