Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class Vector{
  2. public:
  3. double x = 0;
  4. /*...*/
  5. }
  6.  
  7. std::vector<Vector> someVectors;
  8.  
  9. /*someVectors is populated*/
  10.  
  11. for (auto ptr = someVectors.begin(); ptr != someVectors.end(); ptr++)
  12. {
  13. double calculatedXValue = calculateXValue(/*args*/);
  14. ptr->x = calculatedXValue;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement