热门

最新

红包

立Flag

投票

同城

我的

发布
qq_43729554
hiki321
3 年前
trueqq_43729554

#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);
}

函数指针


与指针函数地区别

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
第四~六天学习
立即登录