摘要:
#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 阅读全文
摘要:
头文件 跟着视频教学打的,还有17个报错没解决QAQ,正在解决ing~ 阅读全文
摘要:
package Demo519;/*final关键字代表最终,不可变的public final class 类名称{ // ...}1,修饰一个类,方法,成员变量,局部变量。 */public final class Final { Person per= new Person("noo");}cl 阅读全文
摘要:
//520表白package Demo520;public class Love { public static void main(String[] args) { boolean life=true; while(life){ System.out.println("I love you"); } }} 阅读全文
摘要:
package Demo513.Multi;public abstract class Animal { public static void main(String[] args) { Animal animal =new Cat(); animal.eat(); //往下转型:必须保证对象创建的就是猫, Cat cat=(Cat) ... 阅读全文
摘要:
package Demo513.Multi;public class DemoMultiMethod { public static void main(String[] args) { //写法格式 父类名 对象名= new 子类名(); Employee one =new Teacher(); one.work(); Employee... 阅读全文
摘要:
1 package Demo513; 2 /* 3 定义一个Employee类,该类包含: 4 private 成员变量name,number,birthday,其中birthday为MyDate类的对象; 5 abstract方法earnings():toString()方法输出对象的name,number和birt 6 */ 7 8 pub... 阅读全文
摘要:
运行代码↓ 阅读全文
摘要:
👇是成员类,群主继承成员,群员继承成员 代码运行👇 阅读全文