在 Visual Studio (c++) 中识别重载运算符

编程入门 行业动态 更新时间:2024-10-23 22:27:09
本文介绍了在 Visual Studio (c++) 中识别重载运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有什么方法可以使用 Visual Studio 快速直观地识别 c++ 中的重载运算符?

Is there any way to quickly visually identify overloaded operators in c++ using Visual Studio?

C++ 中 IMO 的一大问题是不知道您使用的运算符已重载.

One of the big gotchas IMO in c++ is not knowing that the operator you are using is overloaded.

Visual Studio 或某些第三方工具中是否有可以自动突出显示或颜色代码重载运算符的功能?

Is there something within Visual Studio or some third party tool which will automatically highlight or color-code overloaded operators?

推荐答案

AFAIK,Visual Assist 确实做了很多增强的语法突出显示,但没有突出显示重载的运算符.如果我错了,请纠正我.

AFAIK, Visual Assist really does a lot of enchanced syntax highlighting, but does not highlight overloaded operators. Correct me if I'm wrong.

如果你需要做大量的代码探索,我建议在 Eclipse+CDT 中进行.在许多其他有用的功能中,它还突出了重载运算符.

If you need to do much code exploring, I suggest doing it in Eclipse+CDT. Among many other useful features it also highlights overloaded operators.

更多推荐

在 Visual Studio (c++) 中识别重载运算符

本文发布于:2023-06-03 12:16:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/473752.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:运算符   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!