我可以使用什么而不是箭头运算符` - >`? [英] What can I use instead of the arrow operator, `->`?

查看:75
本文介绍了我可以使用什么而不是箭头运算符` - >`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是箭头运算符( - > )?

解决方案

以下两个表达式是等效的:

  a-> b 

* a).b

/ p>

What is the arrow operator (->) a synonym for?

解决方案

The following two expressions are equivalent:

a->b

(*a).b

(subject to operator overloading, as Konrad mentions, but that's unusual).

这篇关于我可以使用什么而不是箭头运算符` - >`?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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