Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Hypothesis
- {
- public:
- int id;
- int *trajectory;
- public:
- Hypothesis();
- };
- Hypothesis::Hypothesis()
- {
- trajectory = new int[2000];
- }
- int main()
- {
- //stuff here
- vector<Hypothesis> hyp_t(50);
- //
- //
- if ( hyp_1[0].trajectory == hyp_1[1].trajectory )
- cout << " what the fuck ? How they share same memory space ???" << endl;
- //
- return 0;
- }
Add Comment
Please, Sign In to add comment