Created
August 31, 2014 16:56
-
-
Save VitaminaCPP/a788c408fed1c154a624 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creamos la Lambda | |
auto imprime = [](int numero) -> void | |
{ | |
std::cout << numero << ": " | |
<< std::string(numero, '*') << '\n'; | |
}; | |
for (auto n : f) | |
{ | |
// Usamos la Lambda | |
imprime(n); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment