摘要: #include<stdio.h>#include<stdlib.h>#include<time.h>#include<random>#define ROW 10#define COL 10#define NUM 10int map[ROW+2][COL+2]; //游戏初始化void GameIn 阅读全文
posted @ 2019-05-25 12:28 Ssinoo団子 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 头文件 跟着视频教学打的,还有17个报错没解决QAQ,正在解决ing~ 阅读全文
posted @ 2019-05-24 16:59 Ssinoo団子 阅读(233) 评论(0) 推荐(0) 编辑
摘要: package Demo519;/*final关键字代表最终,不可变的public final class 类名称{ // ...}1,修饰一个类,方法,成员变量,局部变量。 */public final class Final { Person per= new Person("noo");}cl 阅读全文
posted @ 2019-05-22 21:46 Ssinoo団子 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //520表白package Demo520;public class Love { public static void main(String[] args) { boolean life=true; while(life){ System.out.println("I love you"); } }} 阅读全文
posted @ 2019-05-20 09:23 Ssinoo団子 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 运行代码↓ 阅读全文
posted @ 2019-05-19 13:26 Ssinoo団子 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: package Demo513.Multi;public abstract class Animal { public static void main(String[] args) { Animal animal =new Cat(); animal.eat(); //往下转型:必须保证对象创建的就是猫, Cat cat=(Cat) ... 阅读全文
posted @ 2019-05-14 11:36 Ssinoo団子 阅读(161) 评论(0) 推荐(0) 编辑
摘要: package Demo513.Multi;public class DemoMultiMethod { public static void main(String[] args) { //写法格式 父类名 对象名= new 子类名(); Employee one =new Teacher(); one.work(); Employee... 阅读全文
posted @ 2019-05-14 11:26 Ssinoo団子 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1 package Demo513; 2 /* 3 定义一个Employee类,该类包含: 4 private 成员变量name,number,birthday,其中birthday为MyDate类的对象; 5 abstract方法earnings():toString()方法输出对象的name,number和birt 6 */ 7 8 pub... 阅读全文
posted @ 2019-05-13 14:06 Ssinoo団子 阅读(1838) 评论(2) 推荐(1) 编辑
摘要: 运行代码↓ 阅读全文
posted @ 2019-05-12 22:11 Ssinoo団子 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 👇是成员类,群主继承成员,群员继承成员 代码运行👇 阅读全文
posted @ 2019-05-11 13:43 Ssinoo団子 阅读(2417) 评论(0) 推荐(0) 编辑