📄 c52.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -