tags:

views:

74

answers:

2

Can you tell me what does .time do ? I supose that time is something like a function ,but what does the . operand do ??

Thank you ! :)

+2  A: 

If you have a expression like

someVariable.time

Then someVariable is of a class which provides a field named time and it can contain some value, probably a value representing a time.

aioobe
A: 

. is a member access operator, for example:

struct S { clock_t time; }; // S is structure with the member-variable 'time'
S s; // 's' is an instance of 'S'
s.time = 0; // Here the member-variable 'time' of the object 's' is assigned 0
vitaut