如何用 C 编写面向对象的代码? [英] How would one write object-oriented code in C?
本文介绍了如何用 C 编写面向对象的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用 C 编写面向对象的代码有哪些方法?尤其是关于多态性.
What are some ways to write object-oriented code in C? Especially with regard to polymorphism.
另见此堆栈溢出问题C 中的面向对象.
See also this Stack Overflow question Object-orientation in C.
推荐答案
是的.事实上,Axel Schreiner 提供了他的书ANSI 中的面向对象编程-C"是免费的,它非常彻底地涵盖了该主题.
Yes. In fact Axel Schreiner provides his book "Object-oriented Programming in ANSI-C" for free which covers the subject quite thoroughly.
这篇关于如何用 C 编写面向对象的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文