RSS Forums RSS
Please support our C++ advertiser: Programming Forums

substitue of comparison operators

Join Date: Aug 2005
Posts: 1,206
Reputation: Ene Uran is on a distinguished road 
Rep Power: 6
Solved Threads: 67
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Nearly a Posting Virtuoso

Solution Re: substitue of comparison operators

  #4  
Sep 25th, 2005
Originally Posted by Stoned_coder
int a=rand();
int b=rand();
int c=rand();
std::vector<int> vec;
vec.push_back(a);
vec.push_back(b);
vec.push_back(c);
std::cout<< *std::min_element(vec.begin(),vec.end())<<std::endl;
not a comparison operator in sight
However, there is a comparison operator out of sight!
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:43 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC