- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
void g()
{
int sum;
auto rec = [&sum](int i) -> int
{
static int (*inner)(int&, int) = [](int& _sum, int i)->int
{
_sum += i;
return i>0 ? inner(_sum, i-1)*i : 1;
};
return inner(sum, i);
};
}
>Зачем в c++ лямбды?
http://lurkmore.to/НахуйНикомуНеНужны
ака неуловимый джо?
Данный ресурс заблокирован по решению органов государственной власти Российской Федерации
Dear customer,
Access to the requested resource has been blocked by decision of public authorities of Russian Federation
Нельзя в России про Лямбду читать
о, хомяк уже в курсе
просто смешно что лурку закрыли
а Вы говорите
of substandard programmers use it, to the point where it's much much
easier to generate total and utter crap with it. Quite frankly, even if
the choice of C were to do *nothing* but keep the C++ programmers out,
that in itself would be a huge reason to use C.