题海让大学四年没有难题
白天模式登陆

题目详情

单选题 Suppose r is an object with class type R, in order to perform 4 + r, the R class header file must contain

A. int operator( )

B. R(int n)

C. friend R operator+(int r1, const R& r2)

D. R operator+(const R& r1)

E. friend R operator+(const R& r2, int r1)

C++语言程序设计课程封面

学科:C++语言程序设计

时间:2025-12-18 02:35:52

Copyright © 2022 津ICP备2021001502号