[1]Pi Suping,Zhou Zhenhong.Fortran shares data and routines in modules with C/C++[J].Journal of Zhengzhou University (Engineering Science),2008,29(01):99-101,109.
Copy
Journal of Zhengzhou University (Engineering Science)[ISSN
1671-6833/CN
41-1339/T] Volume:
29卷
Number of periods:
2008年01期
Page number:
99-101,109
Column:
Public date:
1900-01-01
- Title:
-
Fortran shares data and routines in modules with C/C++
- Author(s):
-
Pi Suping; Zhou Zhenhong
-
-
- Keywords:
-
- CLC:
-
-
- DOI:
-
-
- Abstract:
-
Multi-language hybrid programming is mainly a program written in one language to call a routine written in another language, and the data used is mainly passed through routine parameters, which rarely reflects the object-oriented programming idea. It is proposed to use the newly introduced modules of Fortran 90 to realize a new hybrid programming model of Fortran and C/C++ object-oriented. The example results show that C/C++ has direct access to data and routines in the Fortran module; Its own data and functions can also be encapsulated in a module for access by Fortran program units referencing the module.