佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

搜索
楼主: khorbeng

【CAS】〖IT | 北大资讯工艺系〗

[复制链接]
发表于 18-10-2006 10:04 PM | 显示全部楼层
原帖由 NgSzeyin2005 于 18-10-2006 03:13 AM 发表

see_199, 你有什么方法能够快速做到ERO和Gaussion吗?


如果在sem1时我还记得,现在?都忘光咯!! 不好意思咯
回复

使用道具 举报


ADVERTISEMENT

发表于 18-10-2006 10:30 PM | 显示全部楼层
原帖由 see199 于 18-10-2006 10:04 PM 发表


如果在sem1时我还记得,现在?都忘光咯!! 不好意思咯

erm........那不用紧啦!谢谢!
顺便问一下,你会做gif吗? 为什么我按不到layer的?
回复

使用道具 举报

发表于 31-5-2007 09:16 PM | 显示全部楼层
原帖由 NgSzeyin2005 于 18-10-2006 10:30 PM 发表

erm........那不用紧啦!谢谢!
顺便问一下,你会做gif吗? 为什么我按不到layer的?


他不会。。我们不MM的。。
不学这个的。。
回复

使用道具 举报

发表于 5-6-2007 05:03 PM | 显示全部楼层
原帖由 tianxing 于 31-5-2007 09:16 PM 发表


他不会。。我们不MM的。。
不学这个的。。

去年的问题今年才回复?
我已经知道怎样做了。
回复

使用道具 举报

发表于 5-6-2007 09:15 PM | 显示全部楼层
原帖由 NgSzeyin2005 于 5-6-2007 05:03 PM 发表

去年的问题今年才回复?
我已经知道怎样做了。


我不会啊。
教我吧。。
回复

使用道具 举报

发表于 5-6-2007 10:40 PM | 显示全部楼层
原帖由 tianxing 于 5-6-2007 09:15 PM 发表


我不会啊。
教我吧。。

你不要++。
你的布条做到怎样了?
版主不懂zommok洗掉我的帖。:@
回复

使用道具 举报

Follow Us
发表于 16-10-2007 11:04 PM | 显示全部楼层
有谁能帮我一下,为什么能够compile却不能够run的?

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.LineBorder;

public class TicTacToe extends JApplet
{
    private char whoseTurn = 'X';


    private Cell[][] cells = new Cell[3][3];


    private JLabel jlblStatus = new JLabel("X's turn to play";


    public TicTacToe()
    {
        JPanel p = new JPanel(new GridLayout(3, 3, 0, 0));
        for (int i = 0; i < 3; i++)
            for (int j = 0; j < 3; j++)
                p.add(cells[j] = new Cell());


        p.setBorder(new LineBorder(Color.red, 1));
        jlblStatus.setBorder(new LineBorder(Color.yellow, 1));


        add(p, BorderLayout.CENTER);
        add(jlblStatus, BorderLayout.SOUTH);
    }


    public boolean isFull()
    {
        for (int i = 0; i < 3; i++)
            for (int j = 0; j<3; j++)
                if (cells[j].getToken() == ' ')
                    return false;


        return true;
    }


    public boolean isWon(char token)
    {
        for (int i =0; i < 3; i++)
            if ((cells[0].getToken() == token)
                && (cells[1].getToken() == token)
                && (cells[2].getToken() == token))
        {
            return true;
        }


        for (int j = 0; j < 3; j++)
            if ((cells[0][j].getToken() == token)
                && (cells[1][j].getToken() == token)
                && (cells[2][j].getToken() == token))
        {
            return true;
        }


        if ((cells[0][0].getToken() == token)
            && (cells[1][1].getToken() == token)
            && (cells[2][2].getToken() == token))


        {
            return true;
        }


        if ((cells[0][2].getToken() == token)
            && (cells[1][1].getToken() == token)
            && (cells[2][0].getToken() == token))
        {
            return true;
        }


        return false;
    }


    public class Cell extends JPanel
        {
        private char token = ' ';


        public Cell()
        {
            setBorder(new LineBorder(Color.black, 1));
            addMouseListener(new MouseListener());
        }


        public char getToken()
        {
            return token;
        }


        public void setToken(char c)
        {
            token = c;
            repaint();
        }


        protected void paintComponent(Graphics g)
        {
            super.paintComponent(g);


            if (token == 'X')
            {
                g.drawLine(10, 10, getWidth() - 10, getHeight() - 10);
                g.drawLine(getWidth() - 10, 10, 10, getHeight() - 10);


            }
        }


        private class MouseListener extends MouseAdapter
        {
            public void mouseClicked(MouseEvent e)
            {
                if (token == ' ' && whoseTurn != ' ')
                {
                    setToken(whoseTurn);


                    if (isWon(whoseTurn))
                    {
                        jlblStatus.setText(whoseTurn + "Won! The game is over";
                        whoseTurn = ' ';
                    }


                    else if (isFull())
                    {
                        jlblStatus.setText("Draw! The game is over";
                        whoseTurn = ' ';
                    }


                    else
                    {
                        whoseTurn = (whoseTurn == 'X') ? '0' : 'X';
                        jlblStatus.setText(whoseTurn + "'s turn";
                    }
                }
            }
        }
    }
}
回复

使用道具 举报

发表于 1-1-2008 02:17 PM | 显示全部楼层
请问computer science的syllabus?
有学c++吗??
我表哥是computer science毕业的...连c++都不会。。。
回复

使用道具 举报


ADVERTISEMENT

发表于 1-1-2008 07:32 PM | 显示全部楼层
原帖由 ahyenn 于 1-1-2008 02:17 PM 发表
请问computer science的syllabus?
有学c++吗??
我表哥是computer science毕业的...连c++都不会。。。

不好意思,这里只有Information Technology和Multimedia,没有Computer Science。
回复

使用道具 举报

发表于 1-1-2008 09:31 PM | 显示全部楼层

回复 249# 的帖子

北大没有computer science吗?
只有Information Technology和Multimedia??
回复

使用道具 举报

发表于 1-1-2008 09:43 PM | 显示全部楼层
原帖由 ahyenn 于 1-1-2008 09:31 PM 发表
北大没有computer science吗?
只有Information Technology和Multimedia??

你是什么大学的?
回复

使用道具 举报

发表于 1-1-2008 10:03 PM | 显示全部楼层
computer application in technology management (JIB1043) 是读关于什么的?有什么用处?难不难?elektif bebas 计划拿这课。
回复

使用道具 举报

发表于 1-1-2008 10:08 PM | 显示全部楼层
原帖由 ahyenn 于 1-1-2008 09:31 PM 发表
北大没有computer science吗?
只有Information Technology和Multimedia??

诚如楼上NgSzeyin兄所说的...北大提供的科系只有BIT和BMM罢了...

据所知道的,C++好象是teras的course来的...

不妨参考下这个...
http://ftm.uum.edu.my/index.php? ... id=19&Itemid=42
回复

使用道具 举报

发表于 1-1-2008 10:12 PM | 显示全部楼层
原帖由 满天星85 于 1-1-2008 22:03 发表
computer application in technology management (JIB1043) 是读关于什么的?有什么用处?难不难?elektif bebas 计划拿这课。


关于电脑的apliacation 咯
很基本的电脑组件,历史,word,excel,access,web的用法等等咯
回复

使用道具 举报

发表于 1-1-2008 10:20 PM | 显示全部楼层

回复 254# 的帖子

你拿过吗?会难读吗?容易score吗?那assignment 会不会很难很多?
谢谢你的讯息!
回复

使用道具 举报

发表于 2-1-2008 12:53 PM | 显示全部楼层
不会很难啊,只是基本的电脑常识,历史,运用而已咯。我这学期拿A哦
功课,对拿IT的你们来说也是很简单的啦
回复

使用道具 举报


ADVERTISEMENT

发表于 2-1-2008 03:01 PM | 显示全部楼层

回复 256# 的帖子

我不是IT学生 ,我是会计系的!谢谢你,我现在要去add 这课了!
回复

使用道具 举报

发表于 2-1-2008 04:35 PM | 显示全部楼层
我是拉曼生
只是我表哥读北大的电脑科系....
我以为他读COMPUTER SCIENCE
他好像没读C++....So i just come ask u all loh
he now still be unemployed..... although graduated 1 year le....
that time he send the resume to one company at KLCC...but because the co. want they Know 5 types of programming software or what kind of things...i' m not sure...he just Know 2 only i think...so...that co. din employ him....  hope he can find a job as soon as possible
sorry...my computer suddenly cant type chinese
回复

使用道具 举报

发表于 3-1-2008 12:48 AM | 显示全部楼层
原帖由 ahyenn 于 2-1-2008 04:35 PM 发表
我是拉曼生
只是我表哥读北大的电脑科系....
我以为他读COMPUTER SCIENCE
他好像没读C++....So i just come ask u all loh
he now still be unemployed..... although graduated ...

你表哥是major什么的?
他去KLCC的哪间公司应征?Intel吗?
回复

使用道具 举报

发表于 5-1-2008 07:01 PM | 显示全部楼层
我不懂咯
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

所属分类: 欢乐校园


ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2026 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 29-5-2026 05:40 AM , Processed in 0.061807 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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