05 2017 档案

摘要:outer: for innter; for break outer//跳出整个循环; continue outer//结束本次外循环的循环 break inner; continute inner; 此例子是两个for循环嵌套,简单的格式,代码没有写完,只是写了一个意思。为啥会有其中outer:和 阅读全文
posted @ 2017-05-25 12:30 xiaoyon 阅读(439) 评论(0) 推荐(0)
摘要:正文 可变参数,必须最为参数的最后一个参数;可变参数只能有一个; c#可变参数例子: class Program { static void Main(string[] args) { Test t = new Test(); t.say("li", "wang"); Console.Read(); 阅读全文
posted @ 2017-05-15 11:07 xiaoyon 阅读(280) 评论(0) 推荐(0)
摘要:正文 java中的八种基础类型。 boolean:只有两个值,false,true 带符号类型 byte:占用1个字节,一个字节也就是8位,那么由于是最高一位是用来表示 负还是正,所以范围就是 -2^7 ~ 2^7-。 short:占2个字节,16位,范围-2^15~2^15-1 int:占用4个字 阅读全文
posted @ 2017-05-09 16:11 xiaoyon 阅读(338) 评论(0) 推荐(0)