Wednesday, August 18, 2010

Practical Notes

When doing refactoring it can be helpful to look at a variable that requires refactoring and see what routines it touches.  The routines it touches are possible methods in a refactored class.  (see my work logs notes for this day for an example).

What is the difference between a structure and a class in C++?  http://www.codeguru.com/forum/archive/index.php/t-194315.html

Basically there are a lot of neat stuff like the 'this' pointer, inheritance, polymorphism.  Where would I want to use a structure instead of a class.  In COM I must use a structure.

What does the #pragma once do?  http://en.wikipedia.org/wiki/Pragma_once

It is a non-standard pre-compiler directive which causes the current source file to be only included once in the compile.


No comments: