Guest User

Untitled

a guest
Nov 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. std::vector<std::pair<std::string, double>> payments = { {"8/18", 0.0}, {"7/18", 771.98}, {"6/18", 0.0}, {"5/18", 771.98},
  2. {"4/18", 771.98}, {"3/18", 771.98}, {"2/18", 0.0}, {"1/18", 3859.90},
  3. {"12/17", 771.98}, {"11/17", 0.0}, {"10/17", 1543.96}, {"9/17", 771.98} };
  4.  
  5. payment_months = [8,7,6,5,4,3,2,1,12,11,10,9]
  6.  
  7. std::vector<int> paymentMonths;
  8. for (auto it : payments)
  9. {
  10. paymentMonths.push_back(it.first[0] - '0');
  11. }
Add Comment
Please, Sign In to add comment