作者MikePhysics (@@)
看板Fortran
标题[问题] 请问有关 f77 的 unformatted 档
时间Thu Sep 18 23:05:00 2008
小弟我之前都只有接触 C++ 和 Matlab
因为研究的需要
开始接触 Fortran
我现在有个 f77 产生的 unformatted 档案 : glatu.dat
请问算是一个 binary 档吗?
想让 C++ 读 但读出来的是错的 ...
ifstream glat_In (glatu.dat,ios::binary);
glat_In.read((char*)glat, sizeof(glat));
同样的当按我有用 IDL 读过
是正确的
想请问要如何让 C++ 正确得读取 f77 的 unformatted 档呢?
ps 我的 f77 是在 unix 下
而 C++ 是在 Vista.....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.171.148.146