/*-------------------------------------------------------------------+
|                Copyright (c) 1995, SAS Institute Inc.              |
|                  Unpublished - All Rights Reserved                 |
|                    S A S / C   S A M P L E                         |
|                                                                    |
|       NAME: FORTCXXC                                               |
|   LANGUAGE: C++                                                    |
|    PURPOSE: THIS EXAMPLE DEMONSTRATES A C++ MAIN CALLING A         |
|             FORTRAN ROUTINE.                                       |
|             IT CONSISTS OF SAMPLE LIBRARY MEMBERS                  |
|             FORTCXXC, FORTCXXF, AND FORTCXX.                       |
| MVS -                                                              |
|    COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(FORTCXX).               |
|       LINK: USE JCL PROVIDED IN SAMPLE.AUX(FORTCXX).               |
|    EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(FORTCXX).               |
| TSO -                                                              |
|    COMPILE: FORTRAN - USE FORTRAN COMPILER.                        |
|             C++ - LCXX  FORTCXXC USING INDEP OPTION.               |
|       LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(FORTCXX).   |
|    EXECUTE: CALL .LOAD(FORTCXX)                            |
| CMS -                                                              |
|    COMPILE: FORTRAN - USE FORTRAN COMPILER.                        |
|             C++ - LCXX FORTCXXC USING INDEP OPTION.                |
|        LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(FORTCXX).  |
|     EXECUTE: CALL FORTCXX                                          |
| MISC NOTES: THE FOLLOWING LSCL102 MESSAGES CAN BE IGNORED:         |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(IFYVINTE)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFEE#)      |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFES#)      |
+-------------------------------------------------------------------*/
#include 

void extern "C" cprog()
{
 cout << "Hello FORTRAN/C++ World!" << endl;
 return;
}