Article View: cn.bbs.comp.lang.java
Article #12656Re: һ��ȱʡ���캯���bug,��Ұ�æ����
From: Roving����LoveDande
Date: Fri, 23 Jul 2004 04:53
Date: Fri, 23 Jul 2004 04:53
74 lines
4879 bytes
4879 bytes
��c/c++����Ա��
/**************���췽���Ƽ����룺********************/
public Trytry(int x,String x1,String x2,String x3){
this.x=x;
this.x1=x1;
this.x2=x2;
this.x3=x3;
}
public Trytry(int x,String x1,String x2){
this(x,x1,x2,"");
}
public Trytry(int x,String x1){
this(x,x1,"");
}
public Trytry(int x){
this(x,"");
}
/***********************************************/
�� �� heminglj (���С��) �Ĵ������ᵽ: ��
: �� ��: һ��ȱʡ���캯���bug,��Ұ�æ����
: ����վ: ��ˮ˼Դ (2004��07��15��10:21:45 ������)
:
: import java.io.*;
: public class Trytry{
:
: private int x;
: private String x1;
: private String x2;
: private String x3;
: public Trytry(int x=0,String x1="",String x2="",String x3=""){
: this.x=x;
: this.x1=x1;
: this.x2=x2;
: this.x3=x3;
: }
: public String getX1(){
: return x1;
: }
: public static void main(String[] args){
: int x=1;
: String x1="what";
: Trytry try1;
: try1=new Trytry(x,x1);
: System.out.println(try1.getX1());
: }
: }
:
: �ܼ�һ�����Գ����dz�����������æ��������ʲô�ط���
: Trytry.java:8: ')' expected
: public Trytry(int x,String x1="",String x2="",String x3=""){
: ^
: Trytry.java:24: ';' expected
: }
: ^
: 2 errors
:
:
:
: --
: �Ҹ����DZ�Ȼ�ģ�
: [1;36m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.25.44][m
--
���ձ���������壬Ҫô̫��С������ȥ�����������壬Ҫô�㹻ǿ��������ȥ�����������壬ֻҪһ�л�ᣬ�ͻḶ����ʵ������1995��8��17�պ������ձ������¡��ձ��ı���û�䡷��˵:���ձ���������Ϊ��ֻҪ����������������Ȼ��Ҫ�ַ����ˣ����
���Կ϶���һ������������ڻ��ǽ����ձ�����������Ϊ�����Դ����ǡ����������ձ�����Ĺ�ң�����Dz�Ҫ����ǿ���������վ���һ��Ҫ���ꡣ �ձ���������й��Ϊ��������ū��Ĺ�ң��к��ʸ��Ϊ������ġ�ΰ��ġ����壿�ݹ������ʷ�����
���������ݱ��������Ĺ���Ҳ�����Ƕ�ħ��ר����ɱ�������ֶ�������ר�����踾Ů���ֶ���ǿ����ר�����ٲƲ��ֶ���С�ˣ�ר��������壻�ֶ���������ר�ŷ������С� ��֪�ܵ��ձ��ˣ��������ǵ����������������˵�������ǵ������Ǹ�����ġ�
ΰ������壡������������������š��������ձ���˵�����ǵģ��ǵģ������й��˾����ڵ��ϣ��������ձ��ˣ�˵�����ǵģ��ǵģ������Ƕ�ô������ʹ�ġ�һ�ž����꣬����ū��ʯԭ��̫����������й���Ϊ????��ʱ���й��˻�������
�������������壬���ұ��ֵ���ڤ��������ô���ǾͲ��ò����ϣ�ʯԭ��̫�ɵ�˵���Ƕ�ô����ȷ��
[1;36m�� ��:��redduke � 07��23��12:53:13 �ı��ġ�[FROM: 202.120.51.36][m
[m[1;33m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.51.36][m
Technical Details
Message-ID:
<4DL4JU$AGU@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp-server.pubsub.com!netnews.sdu.edu.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,9a90b18474ac53f3,start X-Google-Attributes: gidf6cb0,public X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp-server.pubsub.com!netnews.sdu.edu.cn!SJTU From: redduke.bbs@bbs.sjtu.edu.cn (Roving����LoveDande) Newsgroups: cn.bbs.comp.lang.java Subject: Re: һ��ȱʡ���캯���bug,��Ұ�æ���� Date: 23 Jul 2004 04:53:16 GMT Organization: ��ˮ˼Դ Message-ID: <4DL4JU$AGU@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1090557870.A Lines: 74