各位前辈们来看看:class monthcounter{ public static void main(String [] args) { int intyearmonth01=200907; int intyearmonth02=198811; int intyear01,intyeat02,intmonth01,intmonth02; intyear01=intyearmonth01/100; intyear02=

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 13:33:32
各位前辈们来看看:class monthcounter{    public static void main(String [] args)  {     int intyearmonth01=200907;    int intyearmonth02=198811;    int intyear01,intyeat02,intmonth01,intmonth02;    intyear01=intyearmonth01/100;    intyear02=

各位前辈们来看看:class monthcounter{ public static void main(String [] args) { int intyearmonth01=200907; int intyearmonth02=198811; int intyear01,intyeat02,intmonth01,intmonth02; intyear01=intyearmonth01/100; intyear02=
各位前辈们来看看:
class monthcounter
{
public static void main(String [] args)
{
int intyearmonth01=200907;
int intyearmonth02=198811;
int intyear01,intyeat02,intmonth01,intmonth02;
intyear01=intyearmonth01/100;
intyear02=intyearmonth02/100;
intmonth01=intmonthmonth01%100;
intmonth02=intmonthmonth02%100;
int xmonth;
xmonth=(intyear02-intyear01)*12+(intmonth02-intmonth01);
System.out.println(intyearmonth01+"与"+intyearmonth02+"之间相差"+xmonth+"月");
}

}
这个小程序哪出问题咯,就是编译不能通过出现cannot resolve symbol这错误monthcounter.java:9: cannot resolve symbol
symbol : variable intyear02
location: class monthcounter
intyear02=intyearmonth02/100;
拜托大家啦!先谢上.

各位前辈们来看看:class monthcounter{ public static void main(String [] args) { int intyearmonth01=200907; int intyearmonth02=198811; int intyear01,intyeat02,intmonth01,intmonth02; intyear01=intyearmonth01/100; intyear02=
int intyear01,intyeat02,...
intyear02=...
对比一下第7个字母

各位前辈们来看看:class monthcounter{ public static void main(String [] args) { int intyearmonth01=200907; int intyearmonth02=198811; int intyear01,intyeat02,intmonth01,intmonth02; intyear01=intyearmonth01/100; intyear02= 面料成分各位前辈们请问各种面料的化学成分, 有两道英语填空的题!1、( ) is the twelfth month in a year.2、( ) is between Tuesday and Thursday.就这两个填空题!各位英语好的来看看哦! 电动机转速该如何测量,各位前辈是用什么来测电机速度呢 我雅思写作能考多少之前没接触过雅思写作,网上看了看各个分数段的例文,也看不出什么门道,这里高手多,我就来打算写一篇,各位前辈来看看吧.我随便看到个题目,说是学生用电脑做作业好不 小学奥数,各位数学大神来看看 关于实数的 各位同学来看看吖 请前辈们帮我看看这个电源的功率是多少?这里面是图片. 第一次写SAT作文..各位前辈来看看Topic Is the way something seems to be not always the same as it actually is Is the way sometimes seems to be not always the same as it actually is As far as I concerned ,no doubt ,the answer is yes .In suc 《匆匆》一课中作者是怎样具体描述时间的去来匆匆的?请各位前辈无私奉献 2009年泉州市地理生物会考难不难啊各位前辈们,给点建议好吗 各位名师和前辈们,小学的作文课该怎么讲呢? 各位英语前辈们!帮翻译一下《激振三相异步电动机》好吗? 各位前辈们,我想请问下箍筋肢数是什么啊?怎么区别的?还有就是LL,KL, 人与自然的最高境界请各位前辈指教! 沬姎是什么意思劳烦各位前辈指点 化学题,各位高手看看! 数学天才们来看看吧