inline 内联

 1 #include<iostream>
 2 using namespace std;
 3 int m(int x,int y,int z);
 4 int main(){
 5     int a,b,c,max;
 6     cin>>a>>b>>c;
 7     max=m(a,b,c);
 8     cout<<"the largest is "<<max<<endl;
 9     system("pause");
10     return 0;
11 }
12 inline int m(int x,int y,int z){
13        if(z>x)
14        x=z;
15        if(y>x)
16        x=y;
17        return x;
18    }

inline 内联

原文地址:https://www.cnblogs.com/Dragonliuoumai/p/8058089.html