如果要转,还不如混合编程,直接在c中调用fortran
Thornburg. f2c - Fortran to C Converterfile:a.cpp# 49、include #include extern Cvoid _stdcall TESTA(int *);void main()double a = sin(1.00);couta=a;int ii=1;TESTA(&ii);file:b.fSUBROUTINE TESTA(IA)WRITE(*,*) IA=, IARETURNEND编译提示错误:Linking.dfor.lib(matherr.obj) : error ...
you are clever and has known how call fortran routines in the C progaram. Next part I show you how to call C routines in the Fortran program! 2, Fortran 调用 C 函数 编辑C源码add.c 1 #include <stdio.h> 2 3 void add_(float *a, float *b, float *c) 4 { 5 *c = *a + *b...
A Fortran to C Converter We describe f 2c, a program that translates Fortran 77 into C or C++. F2c lets one portably mix C and Fortran and makes a large body of well-tested Fortran source code available to C environments.We describe f 2c, a program that translates Fortran 77 into C...
Action Pak (4in1)gives you four useful applications on a single $39.95 disk. Disk Labeler prints ST labels with as many as 38 alphabetized file titles. Banner prints giant placards in any of five fonts and is compatible with DEGAS. Synfile Converter will transfer SynFile + 8-bit database...