Advertisement
Guest User

Untitled

a guest
Apr 13th, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. class MyClass : public OtherClass{
  2. private:
  3.     static vector< pair<string, array<double, 9> > > myVector;
  4. public:
  5.     MyClass(void);
  6.     ~MyClass(void);
  7. };
  8. vector< pair<string, array<double, 9> > > MyClass::myVector;
  9.  
  10.  
  11. and in the actual usage:
  12.  
  13. array<double, 9>  aNumericData =  { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 };
  14. sName = temp.GetName();
  15. myVector.push_back(make_pair(sName, aNumericData));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement