luaL_argcheck (L, pStudent != NULL, 1, "get wrong arg from lua");. lua_pushnumber(L, pStudent->iSex);//通过C++操作把数据放入到堆栈中, 1表示男2表示女.
確定! 回上一頁