c++ - When to use " . " or " -> " operators to access attribute or member function? -
in both c, c++ , objective-c, can use .
or ->
access values or functions. differences or drawbacks between two?
you can treat a->b
(*a).b
in c
-language
Comments
Post a Comment