#include<iostream>using namespace std;int sum(int x, int y) { return x + y; }int product(int x, int y) { return x*y; }void main(){ ______________________; int a, b, result; cout << "a="; cin >> a; cout << "b="; cin >> b; pf= sum; result = pf(a, b); cout << a << "+" << b << "=" << result << endl; pf = product; result = pf(a, b); cout << a << "*" << b << "=" << result << endl;}横线处填什么 使之成立
添加回答
举报
0/150
提交
取消