c++ 函数指针

#include<iostream>
using namespace std;

//typedef int (*PGET)(int);
int get(int a)
{
    cout<<__func__<<" "<<a<<endl;
    return a;
}
using PGET = int(*)(int);
//int (*pget)(int) = get;
PGET pget  = get;

int main()
{
    pget(200);
    (*pget)(100);
    return 0;
}
原文地址:https://www.cnblogs.com/Sico2Sico/p/5384265.html