main中的函数inline void Fun(); 1#include"stdafx.h"2#include <string.h>3#include <stdlib.h>4#include <iostream.h>567//inline void Fun();89inlinevoidFun()10{11cout <<"Main() Fun()"<<endl;12}1314voidFun2(intnData =2)15{1617}181920intmain(intargc,char*argv[])21{2223voidFun3(i...
c++中推荐使用内联函数替代宏代码片段c++中使用inline关键字声明内联函数inline int func(int a,int b){ return a
main中的函数inline void Fun(); 1#include"stdafx.h"2#include <string.h>3#include <stdlib.h>4#include <iostream.h>567//inline void Fun();89inlinevoidFun()10{11cout <<"Main() Fun()"<<endl;12}1314voidFun2(intnData =2)15{1617}181920intmain(intargc,char*argv[])21{2223voidFun3(i...