#include <iostream> using namespace std;
void NewIf(bool var,void (*func)()) { if (var) { func(); } } int main() { NewIf(0,[]{cout << "Hello world!" << endl;}); NewIf(11,[]{cout << "Hello world!" << endl;}); NewIf(11,[]{cout << "Hello world!" << endl;}); NewIf(11,[]{cout << "Hello world!" << endl;}); NewIf(11,[]{cout << "Hello world!" << endl;}); return 0; }