cout编译错误的小问题(C++)

2025-05-20 00:19:33
推荐回答(2个)
回答1:

cout有个规则,必须同样的类型才能输出。

回答2:

void kkk::display()
{
cout<<" ("
<<<((imag>=0)?"+ i":"- i")
<<}