gpt4 book ai didi

C++ 不同 -> 和 "."

转载 作者:行者123 更新时间:2023-11-30 01:31:13 40 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
what is the difference between (.) dot operator and (->) arrow in c++

我正在尝试学习c++,但我不明白“->”和“.”之间的区别。调用方法时。

例如,我见过类似 class->method() 和 class.method() 的东西。

谢谢。

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com