fork download
  1. #include <iostream>
  2.  
  3. struct res_mod
  4. {
  5. float *v_data;
  6. float *n_data;
  7. float *t_data;
  8.  
  9. unsigned int v_len;
  10. unsigned int t_len;
  11. unsigned int n_len;
  12. };
  13.  
  14. void init(res_mod &_res_mod)
  15. {
  16. std::cout << "cool result\n";
  17. }
  18.  
  19. class model
  20. {
  21. public:
  22. model();
  23. res_mod _res_mod;
  24. };
  25.  
  26. model::model()
  27. {
  28. std::cout << "load data.. bla bla bla.. \n";
  29. }
  30.  
  31. int main()
  32. {
  33. model *_model = new model();
  34. init(_model->_res_mod);
  35. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
load data.. bla bla bla.. 
cool result