单选题

有以下程序#include us...

发布于 2022-03-03 11:42:22

有以下程序
#include <iostream>
using namespace std
void (*function)(float)

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)
}
请为横线处选择合适的程序使得程序的运行结果是123 ()

登录后免费查看答案
关注者
0
被浏览
23
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看