摘要:
c调用lua函数 double f (double x, double y) { double z; /* push functions and arguments */ lua_getglobal(L, "f"); /* function to be called */ lua_pushnumbe 阅读全文
摘要:
static_cast:明确隐式转换 dynamic_cast:父子类转换,运行时类型识别RTTI,有额外的开销,一般在向下转换时才使用,必须要有虚函数 reinterpret_cast:显示强转,后果自负 int main() { int n = 5; float f = 10.0f; f = n 阅读全文