在c中使用虚函数 [英] using virtual function in c
问题描述
大家好,
如何在c中实现虚拟概念。
TIA
Mohan
" mohan" <莫********** @ in.bosch.com>写道:如何在c中实现虚拟概念。
可能在C语言中编写C ++编译器。
>
C没有虚函数。你试图解决什么问题?
解决?
-
Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>
圣地亚哥超级计算机中心< * GT; < http://users.sdsc.edu/~kst>
我们必须做点什么。这是事情。因此,我们必须这样做。
在2006-01-09,mohan< mo ********** @ in.bosch.com>写道:大家好,
如何在c中实现虚拟概念。
TIA
Mohan
假设通过虚拟你的意思是
这个词在另一种类似的语言中被使用的东西,但是大多数
强调的不一样,C ...
作为某个结构的第一个成员,有一个指向另一个结构的指针
由指针到函数类型的成员组成。
mohan写道:
大家好,
如何在c中实现虚拟概念。
告诉我们你认为这意味着什么,以及为什么你想用C做。
Brian
>
Hi All,
How to implement virtual concept in c.
TIA
Mohan
"mohan" <mo**********@in.bosch.com> writes:How to implement virtual concept in c.
Probably by writing a C++ compiler in C.
C doesn''t have virtual functions. What problem are you trying to
solve?
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
On 2006-01-09, mohan <mo**********@in.bosch.com> wrote:Hi All,
How to implement virtual concept in c.
TIA
Mohan
Assuming that by "virtual" you mean something along the lines of how
that word is used in another language which resembles, but most
emphatically is not the same as, C...
Have, as the first member of some struct, a pointer to another struct
consisting of members of pointer-to-function types.
mohan wrote:
Hi All,
How to implement virtual concept in c.
Tell us what YOU think this means, and why you want to do it in C.
Brian
这篇关于在c中使用虚函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!