摘要: // RT-Thread对象模型采用结构封装中使用指针的形式达到面向对象中多态的效果,例如: // 抽象父类 #include <stdio.h> #include <assert.h> struct parent { int a; //反映不同类别属性的方法 void (*vfunc)(int a 阅读全文
posted @ 2019-02-19 23:09 一匹夫 阅读(434) 评论(0) 推荐(0) 编辑