Search:
Forum
Beginners
what is this dot?
what is this dot?
Oct 16, 2014 at 1:14pm UTC
k99
(5)
example = str.emphatic();
what is this .?
is this a assigning function prototypes?
base on the = (assigning operator)
and emphatic(); (prototypes function)
Please help me understand
Oct 16, 2014 at 1:19pm UTC
MiiNiPaa
(8886)
.
is a member selection operator.
This means that whatever class
str
is an instance of, has member function
emphatic
In your snipped example is assigned result of calling
emphatic()
member function on
str
object
http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/
http://www.learncpp.com/cpp-tutorial/82-classes-and-class-members/
http://www.cplusplus.com/doc/tutorial/classes/
Oct 16, 2014 at 1:20pm UTC
k99
(5)
Thanks miinipaa
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs