What does the operator “

Definition The left-shift operator (<<) shifts its first operand left by the number of bits specified by its second operand. The type of the second operand must be an int. << Operator (MSDN C# Reference) For binary numbers it is a bitwise operation that shifts all of the bits of its operand; every bit in … Read more

What is the difference between “::” “.” and “->” in c++ [duplicate]

1.-> for accessing object member variables and methods via pointer to object Foo *foo = new Foo(); foo->member_var = 10; foo->member_func(); 2.. for accessing object member variables and methods via object instance Foo foo; foo.member_var = 10; foo.member_func(); 3.:: for accessing static variables and methods of a class/struct or namespace. It can also be used … Read more