I've got a code from the class, i can't get it to work on visual studio 2015, what is the problem, and can someone help me understand this line: int Func(function F, int x) ?
int Func(function <int(int)> F, int x)
{
return F(x)*F(x) + 1;
}
int G(int x)
{
return x + 1;
}
int main(int argc, const char * argv[])
{
cout << "Func(G, 5) = " << Func(G, 5) << endl;
}`
why the code isn't running ?