Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

How many pitfalls in the code could have been avoided if only the programmer had used a standard library algorithm instead of handcrafting the loop? Demonstrate. To recap, here is the mostly-fixed function: string FindAddr( const list& emps, const string& name ) { list::const_iterator end( emps.end() ); for( list::const_iterator i = emps.begin(); i != end; ++i ) { if( i->name == name ) { return i->addr; } } return ""; }

OpenStudy (anonymous):

please try to solve this also.............:D

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!