Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. void InsertApplyPoint(int applyId,int Amount );
  5. void RemoveApplyPoint();
  6.  
  7. class pet_attr {
  8.     int mApplyId,mAmount;
  9.  public:
  10.     pet_attr(int applyId, int Amount) : mApplyId(applyId), mAmount(Amount)  {}
  11. };
  12.  vector< vector<pet_attr> > mPetAttributes;
  13. int main()
  14. {
  15.  
  16.     return 0;
  17. }
  18. void InsertApplyPoint(int applyId,int Amount ){
  19.     //ch->ApplyPoint(applyId,Amount);
  20.     mPetAttributes.push_back(pet_attr(applyId,Amount));
  21. }
  22. void RemoveApplyPoint(){
  23.     for(vector< vector<pet_attr> >::iterator iter=mPetAttributes.begin(); iter!=mPetAttributes.end(); iter++)
  24.         vector<pet_attr> petTmp = *iter;
  25.        //ch->ApplyPoint(applyId,Amount);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement