| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 999 人关注过本帖
标题:[求助]JAVA有JRE可以使JAVA跨平台,C++为什么不能有CRE,这样C++也可以跨平台 ...
只看楼主 加入收藏
狂放不羁
Rank: 4
等 级:贵宾
威 望:12
帖 子:925
专家分:0
注 册:2007-1-24
收藏
 问题点数:0 回复次数:2 
[求助]JAVA有JRE可以使JAVA跨平台,C++为什么不能有CRE,这样C++也可以跨平台了?
各位前辈JAVA有JRE,这样可以通过不跨平台的JVM来实现JAVA的跨平台,那么为什么C++就不能有个CVM或着CRE什么的,这样C++不是也可以跨平台了吗?既然现在C++不能跨平台,这说明JAVA和C++还是有本质区别的,请问各位前辈是什么原因使C++不能跨平台?
搜索更多相关主题的帖子: JAVA 跨平台 CRE JRE 
2007-03-24 18:18
神vLinux飘飘
Rank: 13Rank: 13Rank: 13Rank: 13
来 自:浙江杭州
等 级:贵宾
威 望:91
帖 子:6140
专家分:217
注 册:2004-7-17
收藏
得分:0 
Just a example.
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编辑过]


淘宝杜琨
2007-03-24 18:48
狂放不羁
Rank: 4
等 级:贵宾
威 望:12
帖 子:925
专家分:0
注 册:2007-1-24
收藏
得分:0 
First.Thank you for your answer,but i still feel a little confused..
why does the c++ not to operate the date type like java?
why does the c++ not to also prescribe the primitive type on a fixed byte in the different OS?
2007-03-24 20:18
快速回复:[求助]JAVA有JRE可以使JAVA跨平台,C++为什么不能有CRE,这样C++也可以跨 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018743 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved