[求助]JAVA有JRE可以使JAVA跨平台,C++为什么不能有CRE,这样C++也可以跨平台了?
各位前辈JAVA有JRE,这样可以通过不跨平台的JVM来实现JAVA的跨平台,那么为什么C++就不能有个CVM或着CRE什么的,这样C++不是也可以跨平台了吗?既然现在C++不能跨平台,这说明JAVA和C++还是有本质区别的,请问各位前辈是什么原因使C++不能跨平台?If you storage a type of int var in a file on the 16bits OS,
now : how did you read it from 32bits OS without error?
in 16bits OS, type of int's size is 2Bytes
but in 32bits it's 4Bytes
that's the one difficult to realize the Cross-platform by C/C++
By the way, some C/C++'s Libs in different OS maybe ware not the same. Maybe, I juse say : maybe~~ :)
[此贴子已经被作者于2007-3-24 20:26:04编辑过]