1 #include <cstdio> 2 #include <iostream> 3 using namespace std; 4 int max(int x,int y) 5 { 6 return x>y?x:y; 7 } 8 int main() 9 { 10 int max(int,int); 11 int (*p)(int ,int) = &max; 12 int c = (*p)(2,3); 13 printf("the max is %d",c); 14 }
标签:std,10,int,max,函数指针,include From: https://www.cnblogs.com/xhu218/p/16901004.html