Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
string FindAddr( list emps, string name ) { for( list::iterator i = emps.begin(); i != emps.end(); i++ ) { if( *i == name ) { return i->addr; } } return ""; }
string FindAddr( list emps, string name )should bestring FindAddr( const list& emps, const string& name )Fabioang@gmail.com
string FindAddr( list emps, string name )
ReplyDeleteshould be
string FindAddr( const list& emps, const string& name )
Fabioang@gmail.com