⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 object.scp

📁 一个脚本语言的解释器
💻 SCP
字号:
object student(id, nm, sp, grd)
{
	ID = id;
	name = nm;
	specialty = sp;
	grade = grd;
	introduce = function()
	{
		println("I'm ",this.name, 
				" a ", this.grade, " of this university, ",
				"specialty in ", this.specialty, ", ",
				"student no. ", this.ID, "," ,
				"nice to meet you!");
	};
}

function main()
{
	s = new student("123456789", "Franklin Charlie", "computer science", "freshman");
	s.introduce();
	println(s);
	println(s.type());
	println(s.string());
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -