看板 Fortran 關於我們 聯絡資訊
小弟我之前都只有接觸 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