User profile: shacktar

User info
User name:shacktar
Location:Ontario, Canada
Number of posts:1185
Latest posts:

Rounding a double to nearest odd int
How about (in a function): 1) Cast the double to an int. 2) If it's odd, then you're done. 3) Other...

The following will make the median show with two decimal places: [code]cout << "The median of the a...

function overloading
The function declarations [code]int add(void);[/code] and [code]int add();[/code] are equivalent. Th...

Help understand pointer declaration
You could think of dereferencing a pointer as taking away a '*' from the type. For instance: [code...

Output won't move across the screen
[code]while (count > 15 || index < 70)[/code] This statement is false right away.