#include <iostream>
struct res_mod
{
float *v_data;
float *n_data;
float *t_data;
unsigned int v_len;
unsigned int t_len;
unsigned int n_len;
};
void init(res_mod *_res_mod)
{
std::cout << "cool result\n";
}
class model
{
public:
model();
res_mod _res_mod;
};
model::model()
{
std::cout << "load data.. bla bla bla.. \n";
}
int main()
{
model *_model;
_model = new model();
init(&_model->_res_mod);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IHJlc19tb2QKewoJZmxvYXQgKnZfZGF0YTsKCWZsb2F0ICpuX2RhdGE7CglmbG9hdCAqdF9kYXRhOwoKCXVuc2lnbmVkIGludCB2X2xlbjsKCXVuc2lnbmVkIGludCB0X2xlbjsKCXVuc2lnbmVkIGludCBuX2xlbjsKfTsKCnZvaWQgaW5pdChyZXNfbW9kICpfcmVzX21vZCkKewoJc3RkOjpjb3V0IDw8ICJjb29sIHJlc3VsdFxuIjsKfQoKY2xhc3MgbW9kZWwKewpwdWJsaWM6Cgltb2RlbCgpOwoJcmVzX21vZCBfcmVzX21vZDsKfTsKCm1vZGVsOjptb2RlbCgpCnsKCXN0ZDo6Y291dCA8PCAibG9hZCBkYXRhLi4gYmxhIGJsYSBibGEuLiBcbiI7Cn0KCmludCBtYWluKCkKewoJbW9kZWwgKl9tb2RlbDsKCV9tb2RlbCA9IG5ldyBtb2RlbCgpOwoJaW5pdCgmX21vZGVsLT5fcmVzX21vZCk7Cn0=