摘要: 1 import java.util.*; 2 public class Chaper4and5 { 3 public static void main(String args[]){ 4 //------------------------------------... 阅读全文
posted @ 2015-03-26 20:18 踏上客人 阅读(102) 评论(0) 推荐(0)
摘要: 1 public class Chapter3 { 2 3 static int times=3;//成员变量 4 5 public static void main(String[] args){ 6 7 byte mybyt... 阅读全文
posted @ 2015-03-26 20:17 踏上客人 阅读(128) 评论(0) 推荐(0)
摘要: Java程序中的main()方法必须声明为public static void。String[] args是main()方法的参数。main()方法是程序开始的执行的位置。整数类型:不能以0作为十进制数的开头【0除外】;八进制数必须以0开头;十六进制数必须以0X或0x开头。 阅读全文
posted @ 2015-03-26 16:01 踏上客人 阅读(159) 评论(0) 推荐(0)
摘要: source code 1 #include 2 #include 3 #include"time.h" 4 #include"conio.h" 5 using namespace std; 6 const int len=5,wid=7;//每个字为len*wid(长和高),wid须... 阅读全文
posted @ 2015-03-13 22:00 踏上客人 阅读(702) 评论(0) 推荐(0)