inline 内联

#include<iostream>
using namespace std;
int m(int x,int y,int z);
int main(){
    int a,b,c,max;
    cin>>a>>b>>c;
    max=m(a,b,c);
    cout<<"the largest is "<<max<<endl;
    system("pause");
    return 0;
}
inline int m(int x,int y,int z){
       if(z>x)
       x=z;
       if(y>x)
       x=y;
       return x;
   }

原文地址:https://www.cnblogs.com/sanyeai/p/7811258.html