c52.cpp

来自「大量的C++语言代码,可以快速的学习C++的相关知识」· C++ 代码 · 共 53 行

CPP
53
字号
// c52.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "school.h"


int main(int argc, char* argv[])
{
	Student myStudent( "Wangchen",
		"1234 Park lane",
		"colorado springs",
		"co.",
		"80907",
		"computer science",
		1234,
		4 );

	Staff myStaff( "ChenWang",
		"1234Silver lane",
		"mauitou springs",
		"co.",
		"12345",
		"Electrical Engineer",
		(float)7.20 );

	Professor myProfessor( "Chenchen",
		"12345678ABC land",
		"Colordo springs",
		"co.",
		"80907",
		"computer science",
		(float)80.40000 );
	
	StudentStaff myPoor( "Wangwang",
		"76541234 DEFlane",
		"colorado springs",
		"co.",
		"80907",
		"computer science",
		1111,
		3,
		"Electrical Engieering",
		(float)5.80 );

	myStudent.Print();
	myStaff.Print();
	myProfessor.Print();
	myPoor.Print();

	return 0;
}

⌨️ 快捷键说明

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