Код: Выделить всё
#include
#include
std::pair returns_pair(int a, int b)
{
return std::make_pair(a * a, b * b);
}
void prints_two_variables(int a, int b)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/59160336/how-to-shadow-existing-variables-when-destructuring-in-c[/url]
Мобильная версия