Hello,
I'm wondering when is necessary/better declare a pointer to an object in a class or a pointer to a vector in a class
Qt Code:
  1. class A {
  2. public:
  3. vector<flaoat> fvec;
  4. //or
  5. vector<float>* fpvec;
  6. A() {
  7. fvec.resize(1000);
  8. //or
  9. fpvec = new vector<float>(1000);
  10. }
  11. };
To copy to clipboard, switch view to plain text mode 
What's the thing that lead me to opt one or other?
THe same question if I had a Person p[10]; in the class. Should be better take a pointer to an array of person? How to choice?

thanks