GreenMoney / Publications
Forum
Question regarding encapsulating a private structure definition inside a class
Consider the following class definition: class TestClass { struct SomeValues { int val_one; int val_two; double val_three; }; public : SomeValues TestValues[ 5 ]; }; My goal was to create a private structure definition inside a class which would neither be accessible or
Can someone explain this interesting phenomenon
I define x as a double, assign to x the value of 5 divided by 2, and then print x. See code below. double x = 5 / 2 ; Print ( "five divided by two is " , x); The result, as printed in the journal tab, is: 2012.05.06 18:12:28 2012.04.26 12:34 Range Breakout EA (alpha 2a) EURUSD ,M15: five divided by