从C ++到Fortran [英] C++ to Fortran
本文介绍了从C ++到Fortran的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将代码从C ++转换为Fortran.
I am trying to convert a code from C++ to Fortran.
Can anyone suggest me a converter to do this?
推荐答案
完全不同的语言,结构完全不同...
程序的整个逻辑都有需要完全重写的风险.
为什么不只是编译fortran,编写映射fortran函数的C ++头文件并从C ++调用这些函数并将它们链接在一起呢?
Completely different languages with completely different constructs...
The entire logic of the program risk to need a complete rewrite.
Why not just compile the fortran, write a C++ header mapping the fortran functions and call those functions from C++, linking all them together ?
这篇关于从C ++到Fortran的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文