updated for presentation

This commit is contained in:
Stephen M. McQuay
2012-05-25 08:17:47 -06:00
parent b47b5c6f35
commit 530ccb5e37
7 changed files with 62 additions and 45 deletions
+7
View File
@@ -13,5 +13,12 @@ int main() {
cout << "total: " << total << endl;
auto my_lambda_doubling_func = [&](int x) -> int { return x * 2; };
cout << my_lambda_doubling_func(total) << endl;
vector<int> orderme = {46, 78, 2, 75, 33, 1, 65, 48, 45, 73};
sort(orderme.begin(), orderme.end(), [](int x, int y) -> bool {
return x < y;
});
for(auto x: orderme) {
cout << x << endl;
}
return 0;
}