错误C2679:二进制'<<' :没有运营商定义...... [英] error C2679: binary '<<' : no operator defined...

查看:103
本文介绍了错误C2679:二进制'<<' :没有运营商定义......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友。,



在VS C ++ 6.0 IDE上编译C ++ 6.0项目时编译错误:



error C2679:binary'<<':没有运算符定义,它采用'class HashInfo'类型的右手操作数(或者没有可接受的转换)



如何解决问题?

解决方案

定义<<确实需要HashInfo类的运算符?



C ++运算符超载 [ ^ ]

你必须将整数放在<< 运算符的右侧,而不是 HashInfo

Hi Friends.,

Compiled error while compile C++ 6.0 Project on VS C++ 6.0 IDE:

error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class HashInfo' (or there is no acceptable conversion)

How to fix the issue?

解决方案

Define a "<<" operator that does take a class HashInfo?

C++ operator overloading[^]


You have to put an integer to the right side of the << operator, not a HashInfo.


这篇关于错误C2679:二进制'&lt;&lt;' :没有运营商定义......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆