#include <iostream>
using namespace std;
_______________________
void One(float one) { cout << "1" << endl; }
void Two(float two) { cout << "2" << endl; }
void Three(float three) { cout << "3" << endl; }
int main() {
float i = 1, j = 2, k = 3;
function = One;
function(i);
function = Two;
function(j);
function = Three;
function(k);
}
函数指针
与指针函数地区别