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

📄 example1-13.cpp

📁 关于书籍《Borland c++Builder工程实践》的源代码
💻 CPP
字号:
#include <iostream.h>
#include  <math.h>
#include  "Tstudent.h"  //其中包含了类Tstudent以及定义的成员函数
void main()
{
Tstudent student; //声明对象,计算机开始为其分配内存,并初始化对象
student.set_id(2001); 
student.set_score(80);
cout<<"The student id is :"<< student.get_id()<<endl;
cout<<"The student score is :"<< student.get_score()<<endl;
return;//在应用程序返回前,计算机删除声明的对象
}

⌨️ 快捷键说明

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