有以下程序:#includeusing namespace std;class sample{private:int x;public:sample(
13 查阅
有以下程序: #include<iostream> using namespace std; class sample { private: int x; public: sample(int A) { x=a; friend double square(sample s); }; double square(sample s) { return S.X*S.K; } int main() { sa
A.20
B.30
C.900
D.400
参考答案: