Код: Выделить всё
#include
#include
int multiply(int a, int b) {
return a * b;
}
int main() {
std::function func_var = multiply;
int result = func_var(4, 5); // result will be 20
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79504130/exe-file-seemingly-deletes-itself-following-compilation-of-cpp-file[/url]
Мобильная версия