pdf.css
Google


   


You are here: CodeIdol > C++ > C++: The Complete Reference > page: 38 39 40 41 42 43 44 45 46 47 48


asm
_cs
_ds
_es
_ss
cdecl
far
huge
interrupt
near
pascal
Your compiler may also support other extensions that help it take better advantage
of its specific environment.
All C (and C++) keywords are lowercase. Also, uppercase and lowercase are
different: else is a keyword; ELSE is not. You may not use a keyword for any other
purpose in a program--that is, you may not use it as a variable or function name.

All C programs consist of one or more functions. The only function that must be
present is called main(), which is the first function called when program execution
begins. In well-written C code, main() contains what is, in essence, an outline of what
the program does. The outline is composed of function calls. Although main() is not
a keyword, treat it as if it were. For example, don't try to use main() as the name of a
variable because you will probably confuse the compiler.

The general form of a C program is illustrated in Figure 1-1, where f1() through
fN()
represent user-defined functions.
The Library and Linking
Technically speaking, you can create a useful, functional C or C++ program that
consists solely of the statements that you actually created. However, this is quite
rare because neither C nor C++ provides any keywords that perform such things as
input/output (I/O) operations, high-level mathematical computations, or character
handling. As a result, most programs include calls to various functions contained in
the standard library.

All C++ compilers come with a standard library of functions that perform most
commonly needed tasks. Standard C++ specifies a minimal set of functions that will be
supported by all compilers. However, your compiler will probably contain many other
functions. For example, the standard library does not define any graphics functions,
but your compiler will probably include some.

The C++ standard library can be divided into two halves: the standard function
library and the class library. The standard function library is inherited from the C
language. C++ supports the entire function library defined by Standard C. Thus, all
of the standard C functions are available for use in C++ programs that you write.

10
You are here: CodeIdol > C++ > C++: The Complete Reference > page: 38 39 40 41 42 43 44 45 46 47 48


ADBRITE ads links
   
Related tags







Popular Categories
Unix books and guides

AJAX popular information
C# language guides
Windows books and cookbooks

.......








Business Key Top Sites

be number one
rate your site




    С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.

    Русский Polski Francais Deutsch
    support sitemap terms

© CodeIdol Labs, 2007 - 2009