有以下程序#include <iostream>us...
发布于 2022-03-03 11:42:55
有以下程序
#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)}
请为横线处选择合适的程序使得程序的运行结果是123 ( )
#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)}
请为横线处选择合适的程序使得程序的运行结果是123 ( )
登录后免费查看答案
关注者
0
被浏览
15