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.37 KB | None | 0 0
  1. class Hypothesis
  2. {
  3. public:
  4.     int id;
  5.     int *trajectory;
  6. public:
  7.     Hypothesis();
  8. };
  9.  
  10. Hypothesis::Hypothesis()
  11. {
  12.     trajectory = new int[2000];
  13. }
  14.  
  15. int main()
  16. {
  17.     //stuff here
  18.     vector<Hypothesis> hyp_t(50);
  19.     //
  20.     //
  21.     if ( hyp_1[0].trajectory == hyp_1[1].trajectory )
  22.       cout << " what the fuck ? How they share same memory space ???" << endl;
  23.     //
  24.     return 0;
  25. }
Add Comment
Please, Sign In to add comment