You are on page 1of 1

1. What you should include in a Header File?

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.

4. Name Some important feautures of VC++?


some of the important features of VC++ are as follows
1) Smart pointers
2) New containers
3) Expression parsing
4) Polymorphic function wrappers
5) Type traits and sophisticated random number generators.
5. Why You Should Use Unicode?
When developing an application, you should definitely consider taking advantage of
Unicode. Even if you're not planning to localize your application today, developing
with Unicode in mind will certainly simplify conversion in the future. In addition,
Unicode does the following:
1. Enables easy data exchange between languages
2. Allows you to distribute a single binary .exe or DLL file that supports all languages
3. Improves the efficiency of your application (discussed in more detail later in the
chapter)

You might also like