User profile: shacktar

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

Adding nodes to linked lists breaks after 10 insertions
A few issues: 1) You never reset [tt]current_capacity[/tt]. This makes it go out of date with the a...

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...