阅读背景:

Java和C ++相互通信时的问题

来源:互联网 

Hey Guys, I have a program in C++ and it writes a binary file on disk. Then I use a Java program to read the number. The problem is the number read is different from the number written... Say, I write an integer 4 using c++ and get back 67108864 when use JAVA to read it ( using readint() ) ... I suspect its due to big or small endian. Do you have any simple solutions to solve this?Hey Guys, I have a program in C++ and it writes




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: