
20-12-2010, 00:53
|
 |
|
|
חבר מתאריך: 07.12.09
הודעות: 7,072
|
|
ד"א
אתה יכול לעשות גם משהו כזה, שהמרצה שלך לא יכיר, ורק VS 2010 וGCC האחרון ידעו לקמפל:
קוד PHP:
Employee * Department::findEmp(string firstName, string lastName )
{
return*( find_if(Emplist.begin(), Emplist.end(),
[&](const Employee & e){return e.first == firstName && e.last == lastName ;});
}
נערך לאחרונה ע"י hellfrost בתאריך 20-12-2010 בשעה 00:58.
|