前言
先看一段代码
#ifndef _INLINE_H
#define _INLINE_H
template<typename T>
static inline
T my_max(T a, T b)
{
a *= 2;
b /= 3;
return (a>b) ? a : b; //找出最大值
}
#endif#ifndef _INLINE_H
#define _前言
先看一段代码
#ifndef _INLINE_H
#define _INLINE_H
template<typename T>
static inline
T my_max(T a, T b)
{
a *= 2;
b /= 3;
return (a>b) ? a : b; //找出最大值
}
#endif#ifndef _INLINE_H
#define _