1.重载函数
2.内联函数
3.New、Delete
4.重载与、const形参
5.常数据成员
6.静态成员函数
==重载函数== #includeusing namespace std; void add(int x,int y) { cout< ==内联函数== #include//#include using namespace std; inline void love(int i) { cout<<"我喜欢你"< ==New、Delete== #include#include using namespace std; int main() { int *pi= new int(10); cout<<"*pi:"<<*pi< ==重载与、const形参== #includeusing namespace std; void func1(const int *x) { cout<<"常量指针:"<<*x< ==常数据成员== #includeusing namespace std; class circle { public: circle(double r); double c_c(); private: double R; const double pai; }; circle::circle(double r):pai(3.1415926) { R = r; } double circle::c_c() { return 2*pai*R ; } int main() { cout<<"请输入半径:"< >pk; circle q_c(pk); cout<<"计算得周长为:"< ==静态成员函数== #include#include using namespace std; class student { public: student (string name,int id); string get_name(); static int get_total(); static int get_total(student&stdref); private: static int Total; string Name; int Id; }; student::student(string name,int id):Name(name) { Total++; Id = id; } string student::get_name() { return Name; } int student::get_total(student&stdref) { cout<



