PRF193_SP25_FE_117230_3641.webp
tolerant_heart

PRF193_SP25_FE_117230_3641.webp

Kizspy Question: 42
(Choose 1 answer)
How do you overload the + operator for a class Complex in C++?
A. Complex operator+(Complex a, Complex b) {
Complex result;
result.real = a.real + b.real;
result.imag a.imag+b.imag;
return result;
B. void operator+(Complex a, Complex b) {}
C. Complex + (Complex a, Complex b) {}
D. friend Complex operator+(Complex a, Complex b);

Thông tin

Category
PRF193
Thêm bởi
tolerant_heart
Ngày thêm
Lượt xem
670
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom