根据函数声明返回不同的值不就行了吗?
void f() { return; }
char f() { char ch; return ch; }
unsigned char f() { unsigned char uch; return uch; }
...
long double f() { long double ld; return ld; }
int main() { return 0; } // 这有什么不能理解的呢?
void f() { return; }
char f() { char ch; return ch; }
unsigned char f() { unsigned char uch; return uch; }
...
long double f() { long double ld; return ld; }
int main() { return 0; } // 这有什么不能理解的呢?
My life is brilliant