填空题
非成员函数应声明为类的______函数才能访问这个类的private成员。
【参考答案】
友元
热门
试题
填空题
若下列程序运行时输出结果为1,A,10.12,B,3.5请将程序补充完整。#include<iostream>using namespace std;int main(){void test(int,char,double______);test(1,’A’,10.1);test(2,’B’);return 0;}void test(int a,char b,double c){cout<<a<<’,’<<b<<’,’<<c<<end1;}