🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #22002

һ���������ƥ�������!!!

#22002
From: ����һ����
Date: Mon, 03 Nov 2003 12:37
49 lines
2441 bytes
ż��ѧ����������������⣬���Ϻָ�����취��


        int Count = n; //nΪһ��֪int����
        int[] x = new int[Count];
        int[] y = new int[Count];

        ..........
        ..........

        for (int i=0; i<Count; i++ )
        {
             x[i] = (i/Count)*width;
             y[i] = (i/Count)*height;//width��height��Ϊint��
        }


��������:


WatFilter.java:50: array required, but int found
                        x[i] = (i/Count)*width;
                         ^
WatFilter.java:51: array required, but int found
                        y[i] = (i/Count)*height;
                         ^
WatFilter.java:57: array required, but int found
                                int rx = x[i];
                                          ^
WatFilter.java:58: array required, but int found
                                int ry = y[j];
                                          ^
WatFilter.java:74: array required, but int found
                        x[i] = (i/Count)*width;
                         ^
WatFilter.java:75: array required, but int found
                        y[i] = (i/Count)*height;
                         ^
WatFilter.java:81: array required, but int found
                                int rx = x[i];
                                          ^
                                int ry = y[j];
                                          ^
8 errors
�밴�������� . . .


--
�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 202.114.7.52]
Technical Details
Message-ID: <497gA6$9uM@bbs.pku.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,9abf7948ee2f854e,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-11-03 04:38:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU
From: UrVega@bbs.pku.edu.cn (����һ����)
Newsgroups: cn.bbs.comp.lang.java
Subject: һ���������ƥ�������!!!
Date: 03 Nov 2003 12:37:23 GMT
Organization: ����δ��վ
Message-ID: <497gA6$9uM@bbs.pku.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1067863014.A
Lines: 49