上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 1.格式 switch(表达式){ case 常量1:语句1;break; case 常量2:语句2;break; case 常量3:语句3;break; .... case 常量n:语句n;break; default: 语句n;break; } //“语句n”可为多句(可看做有括号) //语句顺序执行 //default语句可以不放在最后,放在哪里都一样!2.注意 表达式返回值类型必须是(int,byte,char,enum,short)之一(没有long和boolean!) case语句中的值必须是常量,case后的每个常量表达式必... 阅读全文
posted @ 2013-10-30 10:54 little white 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 1. java中,模运算符%可以获取整数除法的余数,同样适用于浮点类型数据。double y = 23.56; y%5;(即y mod 5 =3.56) 【c/c++中,要求%两侧均为整数数据。】2. 自增和自减运算符只能作用于变量,不能作用于常量或表达式。 前缀(prefix) 后缀(postfix)3. 只有整数,浮点数,字符运算数可以用来比较大小。4. 逻辑运算符:! && || (优先级降低排序) 有时一个运算符便能决定表达式的值,只有在需要时,才对第二个运算数求值。5. 赋值运算符:*= /= += -= %=6. 例子若干: public ... 阅读全文
posted @ 2013-10-29 16:42 little white 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1. java中字符占两个字节,因为char类型占两个字节(16位),而C,C++中占1字节(8位)。2. 变量定义 第一步:声明(Declaration) 第二步:赋值(Assignment) 这两步可以合并: int X = 10;3.局部变量和全局变量可重名,方法中调用的是局部变量,方法外调用的是全局变量。4.各进制书写方法 十进制无前缀 八进制(octal)前面加数字“0” 十六进制(hexadecimal)前面加“0x”或“0X”(数字“0”和字母“X”)。5.科学计数(指数形式) 10e2 或 10E2或1.56e3 分别为10*10^2 ,10*10^2... 阅读全文
posted @ 2013-10-24 15:59 little white 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: Java标识符(Identifier)1. 只能由英文字母(A~Z)或(a~z)、下划线(_)、美元符号($)和数字(0~9)组成,且开头不能为数字。2. 区分大小写!3. 无长度限制! _3_ √ $aa √4.书写规范 常量:大写字母,多个单词用下划线分开 变量:小写字母 类(接口名):大写首字母,每个单词的首字母也大写 包名:全小写的名词 java.awt.event 方法:往往由多个单词合成,第一个单词为动词,首字母小写,中间的每个但系首字母大写5.关键字和保留字java 中没有sizeof 运算符,所有类型的长度和表示都是固定的java 不用goto和const作... 阅读全文
posted @ 2013-10-24 15:32 little white 阅读(4278) 评论(1) 推荐(0) 编辑
摘要: 四级 8:50---9:00试音时间-9:00---9:10播放考场指令,发放作文考卷 - 9:10取下耳机,开始作文考试 - 9:35发放含有快速阅读的试题册(但9:40才允许开始做) - 9:40---9:55做快速阅读 - 9:55---10:00收答题卡一(即作文和快速阅读) - 9:55---10:00重新戴上耳机,试音寻台,准备听力考试 - 10:00开始听力考试,电台开始放音 - 听力结束后完成剩余考项。 - 11:20全部考试结束。-注释:-1,标准分满分710分=听力248.5+阅读248.5+综合测试106.5+写作106.5。 -2,从听力、阅读部分的换... 阅读全文
posted @ 2013-10-22 11:02 little white 阅读(603) 评论(0) 推荐(0) 编辑
摘要: The place where I want to goIt’s hard to say where I want to go most. Because there are too many places I want to travel with my friends or my families. For example, Tibet, Yunnan and some places in American. These places are so charming maybe because I’d never been there .But there’s one place whic 阅读全文
posted @ 2013-10-22 11:00 little white 阅读(810) 评论(0) 推荐(0) 编辑
摘要: Being a volunteer is great! There are lots of volunteers around usnow. And they don’t do it for money, they do it only for happy or others。Asa young student, helping other people is a major commitment。 If I have achance to join a volunteer club and to be a volunteer who helps others,Iwill try my bes 阅读全文
posted @ 2013-10-22 10:59 little white 阅读(560) 评论(0) 推荐(0) 编辑
摘要: A. How to Agree Strongly with an Opinion. 1. I couldn't agree more! 2. That's absolutely true! 3 .Absolutely! 4. I agree with your point. 5. I'd go along with you there. 6. I'm with you on that. 7. That's just what I was thinking. 8. That's exactly what I think. 9. That's 阅读全文
posted @ 2013-10-22 10:58 little white 阅读(582) 评论(0) 推荐(0) 编辑
摘要: "Learning a language is easy. Even a child can do it!"Most adults who are learning a second language would disagree with this statement. For them, learning a language is a very difficult task. They need hundreds of hours of study and practice, and even this will no guarantee success for ev 阅读全文
posted @ 2013-10-22 10:57 little white 阅读(442) 评论(0) 推荐(0) 编辑
摘要: FriendshipsRememberFriendships can be complicated.When you want to get to know someone, it helps to talk about things that you have in common.Your friends should not pressure you to do things that make you feel uncomfortable or bad about yourself.Friendships are fun and make us feel special but it i 阅读全文
posted @ 2013-10-22 10:56 little white 阅读(1430) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页