14Derived Data Types

14Derived Data Types - DERIVED DATA TYPES INTRODUCTION...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
DERIVED DATA TYPES
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
INTRODUCTION   Creating own data types   A Derived data type is defined as follows:                 TYPE [::]  type_name           ….definitions…        END TYPE [ type_name ]         There can be as many definitions in the TYPE definition as    required/desired.          EXAMPLE:         TYPE :: EMPLOYEE              CHARACTER(14) :: FIRST_NAME               CHARACTER(14) :: LAST_NAME                          INTEGER :: SSN                          REAL :: SALARY                      END TYPE EMPLOYEE
Background image of page 2
  Makes it easier to solve specific problems User-defined data type can have any number and  combination of components  Each component must be an intrinsic type or defined user  type. Thus a derived data type is an easier way to group together 
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/30/2009 for the course CGS 2421 taught by Professor Onal during the Fall '09 term at University of Florida.

Page1 / 12

14Derived Data Types - DERIVED DATA TYPES INTRODUCTION...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online