如何在C中重载函数? [英] How do I overload functions in C?

查看:54
本文介绍了如何在C中重载函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道C ++允许你重载函数,但是我如何重载C中的函数?

I know that C++ lets you overload functions, but how do I overload functions in C?

推荐答案

某个< fr *** *****@yahoo.com>潦草地写道:
some one <fr********@yahoo.com> scribbled the following:
我知道C ++允许你重载函数,但是如何在C中重载函数?
I know that C++ lets you overload functions, but how do I overload functions in C?




你不要'' t。


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)------- ------芬兰-------- \

\-- http://www.helsinki.fi/~palaste ---------------------规则! -------- /



You don''t.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/


有人写道:
some one wrote:
我知道C ++允许你重载函数,但是我如何重载C中的函数?
I know that C++ lets you overload functions, but how do I overload functions in C?




你不是。

重载函数是否是一件好事是不可判定的。 C ++

设计师与C设计师有不同的看法。


-

Martin Ambuhl



You don''t.
Whether overloading functions is a good thing is not decidable. The C++
designers have a different view from that of C designers.

--
Martin Ambuhl


文章< 54 ************************* @ posting.google.com> ; ,有人写道:
In article <54*************************@posting.google.com> , some one wrote:
我知道C ++会让你重载函数,但我怎么在C中重载函数?
I know that C++ lets you overload functions, but how do I
overload functions in C?



你可以' 't。


在C中有一种类型的重载函数,通用数学

函数,但是没有办法自己重载函数

你可以在例如C ++或其他语言。


-

Andreas K?h?ri


You can''t.

There is one type of overloaded functions in C, the generic math
functions, but there''s no way to overload functions yourself as
you may do in e.g. C++ or other languages.

--
Andreas K?h?ri


这篇关于如何在C中重载函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆