HelloWorld书写
#include<iostream>//标准输入输出流,in输入 out输出
using namespace std;//使用命名空间std打开std房间
//函数入口地址
int main()
{
// cout标准的输出
// <<左移运算符
// endl 结束换行
cout << "HelloWorld"<<endl;
system("pause");//阻塞功能
return EXIT_SUCCESS;//返回正常退出
}
运行结果:
面向对象三大特性:封装 继承 多态