Pre nedočkavcov:
std::function testFaktorial;
testFaktorial = [&](int n) -> int {
if(n == 0) {
return 1;
}
return testFaktorial(n - 1) * n;
};
std::array cisla{3, 5, 6, 8, 9};
for (auto c : cisla) {
cout
Příspěvky Programovanie v jazyku C++: Tvorba funkcii (2)
std::array cisla{3, 5, 6, 8, 9};
for (auto c : cisla) {
cout
for (auto c : cisla) {
cout