Guest User

Untitled

a guest
Apr 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. class Hypothesis
  2. {
  3. public:
  4.     int id;
  5.     int *trajectory;
  6. };
  7.  
  8. Hypothesis::Hypothesis()
  9. {
  10.     trajectory = new int[2000];
  11. }
  12.  
  13. int main()
  14. {
  15.     //stuff here
  16.     vector<Hypothesis> hyp_t(50);
  17.     //
  18.     //
  19.     if ( hyp_1[0].trajectory == hyp_1[1].trajectory )
  20.       cout << " what the fuck ? How they share same memory space ???" << endl;
  21.     //
  22.     return 0;
  23. }
Add Comment
Please, Sign In to add comment