By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,191 Members | 812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,191 IT Pros & Developers. It's quick & easy.

Algorithm help.

P: 23
Is there an algorithm that allows me to manipulate a variable by a range of falues in the standard STL with standard arithmatic? Something like this:
vector.push_back(2);
vector.push_back(3);
5 / algorithm(vector.begin(), vector.end()); /* returns the resulting qoutent of the numbers in the vector.*/

Anyone know anything like this? It would be a whole lot easier than writing my own code to divide it one at a time...
Mar 14 '07 #1
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
Is there an algorithm that allows me to manipulate a variable by a range of falues in the standard STL with standard arithmatic? Something like this:
vector.push_back(2);
vector.push_back(3);
5 / algorithm(vector.begin(), vector.end()); /* returns the resulting qoutent of the numbers in the vector.*/

Anyone know anything like this? It would be a whole lot easier than writing my own code to divide it one at a time...
I'm sorry, I'm not sure what you are trying to do.
Mar 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.