Fortran + C++# Computation - 科学计算
h*t
1 楼
Fortran calls C++ functions:
in Fortran, the arguements are passed by reference,
in C++ prototype, the arguements can be declared as
pointer generally. I also tried passing reference in C++,
it works. (Here only consider a single unit built-in data type, e.g. real,
integer)
My question is: why it works for both passing reference and passing pointer?
(ONLY test on FC4, intel fc/cc 9.0)
Gao shou qing jie shi yi xia.....
3x.
in Fortran, the arguements are passed by reference,
in C++ prototype, the arguements can be declared as
pointer generally. I also tried passing reference in C++,
it works. (Here only consider a single unit built-in data type, e.g. real,
integer)
My question is: why it works for both passing reference and passing pointer?
(ONLY test on FC4, intel fc/cc 9.0)
Gao shou qing jie shi yi xia.....
3x.