摘要: return; 直接作为一条语句表示当前函数(也可以叫做方法)结束return后有东西,则是返回和函数返回类型一致的对象例如:return 1;表示语句跳转到函数末尾 并且返回值为1具体:平时用的时候主要用在结束循环啦。。返回个方法的值啦。。之类的。给你写个小例子。结束循环: 1 int a; 2 ... 阅读全文
posted @ 2015-12-09 08:11 翻滚吧炒鸡蛋 阅读(15454) 评论(0) 推荐(2)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace do_while... 阅读全文
posted @ 2015-12-09 01:14 翻滚吧炒鸡蛋 阅读(318) 评论(0) 推荐(0)