Archive for December, 2009





Nested Structure

Nested Structure

December 30, 2009 | Learn C++ | Comments Off

Nested Structure: When members of a structure are defined as structure type, these are called nested structures. For example: struct info { char s_name[15]; char f_name[15] ; char city[15] ; int age; }; struct p_data { ...

Structure Variables as Arrays

Structure Variables as Arrays

December 19, 2009 | Learn C++ | Comments Off

Structure Variables as Arrays: A structure variable may also be declared as an array. This is done to manage a large number of records. Each variable of the array represents a complete record. For example, in the following example the structure va...

Array Type Members of Structures

Array Type Members of Structures

December 18, 2009 | Learn C++ | Comments Off

Array Type Members of Structures: The members of structure may be of different types. These can also be simple variables or array variables. For example, in the following structure, the member “sub” is an array of int type. It has four elements...

Initialization of Structure Variables

Initialization of Structure Variables

December 17, 2009 | Learn C++ | Comments Off

Initialization of Structure Variables: The values into a structure variable can be assigned when it is declared. It is called initialization of the structure variable. To initialize a structure variable, data is assigned to the members of the struc...

Structure Variable

Structure Variable

December 15, 2009 | Learn C++ | Comments Off

Structure Variables: A structure is a collection of data items or elements. It is defined to declare its variables. These are called structure variables. A variable of structure type represents the members of its structure. [ad#ad-3] When a str...

C++ Structures

C++ Structures

December 14, 2009 | Learn C++ | Comments Off

C++ Structures: A structure is a collection of related elements or data items. The elements of the structure are called members of the structure. A structure is unlike an array. All elements in an array are of the same type. But in structures, the ...

Built-In Function of Math

Built-In Function of Math

December 12, 2009 | Learn C++ | Comments Off

Built-In Function of Math: The functions that are used to perform mathematical calculations are defined in “math.h” header file. The commonly used math library functions are discussed below. The “pow” Function: It is used to calcul...

Built-In Function of String

Built-In Function of String

December 12, 2009 | Learn C++ | Comments Off

Built-In Functions of String: The “string.h” header file contains the functions that are used to process strings. The commonly used functions of this header file are given below. The “strlen” Function: The “strlen” stands for str...

Standard Input and Output Functions C++

Standard Input and Output Functions C++

December 11, 2009 | Learn C++ | Comments Off

Standard Input and Output Functions C++: The “stdio” stands for standard input/output. This header file contains a large number of standard Input and Output functions that are used to get input from tile input devices and also to print results ...

Common C++ Built-In Functions

Common C++ Built-In Functions

December 10, 2009 | Learn C++ | Comments Off

Common C++ Built-in Functions: The commonly used built-in functions are discussed below: The “conio.h” Function: The “conio.h” stands for console input/output. This header file contains basic input & output functions that are use...

 

« Older Entries

Translator

    Translate to:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes