#error //用于在编译阶段抛出错误信息,适合检查程序员在预处理阶段的限制不一致或者违规行为。比如#if defined(DEBUG) && define(NO_DEBUG)#error DEBUG and NO_DEBUG all defined!#endif...
一.使用Scala生成随机数1.简单版本:/*1.you can use scala.util.Random.nextInt(10) to produce a number between 1 and 102.at the same time,you nextInt(100) to produce a number between 1 and 100*/object Test {...