Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vector{
- public:
- double x = 0;
- /*...*/
- }
- std::vector<Vector> someVectors;
- /*someVectors is populated*/
- for (auto ptr = someVectors.begin(); ptr != someVectors.end(); ptr++)
- {
- double calculatedXValue = calculateXValue(/*args*/);
- ptr->x = calculatedXValue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement