MY mENU


Friday 20 July 2012

What are the major differences between C and C++?

C was the C++ predecessor. As it's name implies, a lot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.


C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

Although it is possible to implement anything which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has a lot of liberty on how to actually implement the internals, and style among programmers will vary a lot on the design choices made.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

NO option to send data to the CD-ROM drive…?


When you view the properties of the CD-R drive or CD-RW drive, you may notice that the
Recording tab is not displayed in the CD Drive Properties dialog box. To resolve this issue,
edit the Microsoft Windows registry to identify the CD-R drive or CD-RW drive as a
recordable drive. To do this, follow these steps.
1. Click Start, and then click Run.
2. In the Open box, type regedit, and then click OK.
3. Expand the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CD
Burning\Drives
4. On the File menu, click Export.
5. In the File name box, type backup of drives key, and then click Save.
6. In the left pane of the Registry Editor window, click the Volume{GUID} folder under
Drives, where GUID is a 32-character hexadecimal globally unique identifier. If you have
more than one CD-ROM drive in the computer, an additional Volume{GUID} folder is listed
for each drive.
7. In the right pane of the Registry Editor window, double-click Drive Type.
8. In the Value data box, type 1 or 2, depending on the drive type, and then click OK. The
drive type should be 1 if it is a CD-R and 2 if it is a CD-RW.
9. Quit Registry Editor.
10. Click Start, and then click My Computer.
11. Under Devices with Removable Storage, right-click the CD-R drive or CD-RW drive, and
then click Properties on the shortcut menu.
12. If the Recording tab is displayed, Windows recognizes the drive as a recordable device.
13. Click Cancel.
If you have more than one CD-ROM drive, DVD-ROM drive, or CD-RW drive in the
computer and the Recording tab is not displayed, an incorrect drive may have been
configured as "recordable" in the Windows registry. To troubleshoot this issue, follow these
steps:
Follow steps 1 through 9 to edit the Drive Type value of the Volume{GUID} folder whose
value you previously changed. In the Value data box, type 3, and then click OK. The drive
type value of 3 indicates that the drive is a standard CD-ROM and is not writable. In the left
pane of the Registry Editor window, click the next Volume{GUID} folder. Follow steps 7
and 8 to change the Value data entry to 1 or 2, depending on the drive type. Quit Registry
Editor, and then follow steps 10 through 12 to confirm that the Recording tab is displayed in
the properties dialog box of the CD-R drive or CD-RW drive

What is a container class? What are the different types of container classes?

A container class is a class that is used to hold objects in memory or external storage. A container class acts as a generic holder. A container class has a predefined behavior and a well-known interface. A container class is a supporting class whose purpose is to hide the

topology used for maintaining the list of objects in memory. When a container class contains a group of mixed objects, the container is called a heterogeneous container; when the container is holding a group of objects that are all the same, the container is called a homogeneous
container.