由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - How to read binary(data) file generated by Fortran in C/C++?
相关主题
如何识别binary文件?<>全书下载
How to use binary tree in Fortran?Write In C
求助:C++里的fstream究竟该怎么用? (转载)Fortran和C++的数据转换问题
问个C++读入文件的问题请问如何在C++中使用lapack?
random number generator in Fortran所需内存太大怎么办???
fortran的random number 相关的函数lib是啥?Fortran and C
Random number generation in FORTRAN请教大家c++ array
请教如何安装GNU Scientific library for C?icc complier is expensive yar~~
相关话题的讨论汇总
话题: c++话题: file话题: fortran话题: binary话题: generated
进入Computation版参与讨论
1 (共1页)
M**********n
发帖数: 432
1
How to read binary(data) file generated by Fortran in C/C++?
Is it possible? If possible how to realize it?
The binary file generated by Fortran is a double precision data file.
I have tried to use read binary file in C++, but have problem. The following
is my C++
code.
double temp=0.0;
ifstream File("bin.data",ios::in|ios::binary);
File.read((char *) &temp, sizeof(double));
cout< The number that has been read out does not make any sense.
Anybody know why? Thanks.
1 (共1页)
进入Computation版参与讨论
相关主题
icc complier is expensive yar~~random number generator in Fortran
C++ object-oriented for CFDfortran的random number 相关的函数lib是啥?
fortran还是matlab?Random number generation in FORTRAN
关于C和Fortran: 一点儿个人观点请教如何安装GNU Scientific library for C?
如何识别binary文件?<>全书下载
How to use binary tree in Fortran?Write In C
求助:C++里的fstream究竟该怎么用? (转载)Fortran和C++的数据转换问题
问个C++读入文件的问题请问如何在C++中使用lapack?
相关话题的讨论汇总
话题: c++话题: file话题: fortran话题: binary话题: generated