answersLogoWhite

0


Best Answer

A C plus plus program is a collection of one or more translation units. Every C++ program requires at least one translation unit that defines the global main function, the entry point of the application. Typically, the global main function is used to parse any command line switches and delegate primary operations to one or more lower-level functions.

A translation unit is the smallest unit that can be processed by the C++ compiler. During compilation, only those units that have changed since the previous compilation need be recompiled. A unit is essentially a source file (typically a *.cpp file) and source files are typically divided up by the classes and/or functions they define, thus allowing programmers to create self-contained code modules that can used by other applications. Typically, a source file has a corresponding header file (typically a *.h file) which must be included by the source file (using the #include precompiler directive). The header typically describes the translation unit's interface and may be included in other translation units that require access to that interface.

A class is a user-defined type, in much the same way that an int or float is a built-in type. The class definition describes the type's representation and interface; the operations that are valid for the type. Class interfaces are typically defined in header files and implemented in source files. However, class templates need to be completely defined in the header as these are used by the compiler to generate types at the point of instantiation and the compiler needs to "see" the complete template definition in advance of any usage of that template.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A C plus plus program is a collection of one or more what?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can a function be called from more than one place in a program in c plus plus?

In C and C++, as well as in many (all?) languages, a function can be called from more than one place in a program. That's the purpose of functions - to encapsulate pieces of code that are needed in more than one place in the program.


What is differ program manager and program manager?

I guess you are asking about the difference between a Project Manager & a Program Manager. A Project Manager manages the project while a Program Manager manages the program. A program may be a collection of one or more projects


How many main functions are used in c plus plus program?

One.


Where can one find information on business debt collection?

One can find information on business debt collection in online articles and guides on business debt collection. In addition, one can find more information on business debt collection through one's peers.


How many main functions can a c plus plus program have?

1. In C language, you cannot compile a source-file if it has two (or more) functions with the same name. 2. You cannot link a program if it has two (or more) global (ie: non-static) functions with the same name.


What collection of literary works by one or more authors?

An anthology is a collection of literary works


Where can one download MSN Plus?

MSN plus is a windows messenger extension. You can download the program for free from MSN. Most windows now come with this program built in but if not visit MSN.


Which one should I get sonic classic collection or sonic ultimate genesis collection and why?

Well the answer's in the titles: Sonic Ultimate Genesis Collection has more games.


How can you turn a C plus plus program into a dot exe to run on a PC without a compiler?

To make C++ code into an executable program, you need a compiler. Compilation of a program doesn't have to be on the same computer as the one it's intended to be used on.


Why would one need star plus serials?

One would need star plus serials because they need to show that they are a candidate for the program (star plus). If one did not have a star plus serial, then they might be considered a fraud in the eyes of the law.


Why program consists more than one object file in c?

why does a program consists of more than one object file in c++


How do you define a list?

A collection of terms with one or more things in common.