Wednesday, October 01, 2008

New/Delete advantages

Brushing through some basics:


  • new/delete invokes constructor/destructor. Malloc/free will not.
  • new does not need typcasting. Malloc requires typcasting the returned pointer.
  • new/delete operators can be overloaded, malloc/free can not.
  • new does not require you to explicitly calculate the quantity of memory required. (Unlike malloc)
Ref: C / C++ and Dynamic memory allocation

Monday, September 15, 2008

Colour your Eclipse Chrome!

To add a browser to eclipse, Go to Window -> Preferences -> General -> Web
Browser
and click Add.



To find the location of your chrome installation, try using the Properties of
the Shortcut Link. [Right-Click on Short-Cut -> Properties -> Target]

More chrome command-line options.

Make sure you have the Chrome browser checked to act as your default Eclipse Browser.