Professional Documents
Culture Documents
Inside the header file, you may insert function prototypes, structs declarations, #define
macros, enum types, typedefs, class declarations, extern declarations of global objects,
template classes and functions, constants, certain #pragma directives that control the
compilation process and similar macro directives. Note, however, that a header file should
never have definitions (except for macros and templates). In other words, you shouldnt
implement functions and class member functions inside a header file (except for inline
functions), nor you can create variables, arrays, and object or global variables in a header
file.
2. What is the disadvantage of a template function?
A template function cannot be distributed in the obj form. This is because, fuction with
which parameters the template function is going to be called is decided at the run time only.
Therefore an obj form of a template function cannot be made by merely compiling it.
3. State some new features which are incorporated into Microsoft visual c++ 2008?
Some of the new features which are introduced to VC++ are a large set of new MFC classes
which will certainly help in building modern user interfaces. TR1 is the major addition to the
pack of VC++. This also has new user interface, adjustable panes, and support for Microsoft
office ribbon, controls, dialog boxes and windows.