C ++中Java API规范的对应部分是什么 [英] What is the counterpart of Java API Specification in C++

查看:90
本文介绍了C ++中Java API规范的对应部分是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在从Java切换到C ++。

当我使用Java编写代码时,我使用以下网站查找类和方法的

规范:

http:// java .sun.com / j2se / 1.5.0 / docs / api /

我认为必须有几个网站提供类似的信息

for C ++。

我找到了一些,但是它们没有我想象的那么好。

你们能推荐一些好的吗?


谢谢!

Hi, I am currently switching from Java to C++.
When I code in Java, I use the following website to find the
specifications of classes and methods:

http://java.sun.com/j2se/1.5.0/docs/api/

I think there must be several websites providing similar information
for C++.
I did find some but they were not as good as I expected.
Could you guys recommend some good ones?

Thanks!

推荐答案

7月25日上午5:23,xz< zhang.xi ... @ gmail。编写:
On Jul 25, 5:23 am, xz <zhang.xi...@gmail.comwrote:

您好,我目前正在从Java切换到C ++。

当我使用Java编写代码时,我使用以下网站查找

规范的类和方法:

http ://java.sun.com/j2se/1.5.0/docs/api/

我认为必须有几个提供类似信息的网站

for C ++。

我确实找到了一些,但它们没有我想象的那么好。

你们能推荐一些好的吗?


谢谢!
Hi, I am currently switching from Java to C++.
When I code in Java, I use the following website to find the
specifications of classes and methods:

http://java.sun.com/j2se/1.5.0/docs/api/

I think there must be several websites providing similar information
for C++.
I did find some but they were not as good as I expected.
Could you guys recommend some good ones?

Thanks!



在C ++中,没有像Java那样的API引用。每个图书馆都有自己的参考资料。因此,它取决于您使用的是哪种类型的库(STL,ZeusFramework,MFC等)


ZeusFramework有许多类似于Java的类(列表,地图,

字符串,日历等等。

它还包括C ++的RMI,序列化和网络

参见 http://www.xatlantis.ch/api/zeusbase/index.html

In C++ there is no API reference like Java has. Each library has its
own reference. There fore it depends what kind of library you are
using (STL, ZeusFramework, MFC etc.)

The ZeusFramework has lots of classes similar to Java (Lists, Maps,
String, Calendar and much more).
It also includes RMI for C++, Serializing and networking
See http://www.xatlantis.ch/api/zeusbase/index.html


2007年7月25日星期三11:05:04 -0700,bhadorn写道:
On Wed, 25 Jul 2007 11:05:04 -0700, bhadorn wrote:

> ZeusFramework有许多类似于Java的类(列表,地图,字符串,日历等等)。
它还包括用于C ++,序列化和网络的RMI
请参阅 http://www.xatlantis.ch/api/zeusbase/index .html



< offtopic>

不幸的是,宙斯似乎是不知道RAII,中央C ++习语,

例如
http://www.xatlantis.ch/examples/zeu...ple.html#Step1
http://www.xatlantis.ch/examples/rmi_example.html#Step4


将Java库的可用性和便利性转移到C ++是一个好主意(非常需要可用的C ++库)。但是这些库应该使用C ++样式和惯用语来提供更好的解决方案(例如用于资源处理)。

< / offtopic> ;

-

Roland Pibinger

最好的软件简单,优雅,充满戏剧性 - Grady Booch

<offtopic>
Unfortunatey, Zeus seems to be unaware of RAII, the central C++ idiom,
e.g.
http://www.xatlantis.ch/examples/zeu...ple.html#Step1
http://www.xatlantis.ch/examples/rmi_example.html#Step4

Tranferring the usability and convenience of Java libraries to C++ is
certainly a good idea (usable C++ libraries are sorely needed). But
these libraries should use C++ styles and idioms where they provide
much better solutions (e.g. for resource handling).
</offtopic>
--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch


我知道Zeus-Framework不支持抛出异常,

如果你的意思是。有很好的理由没有使用C ++的异常

。由于C ++没有GC,它可能会导致资源泄漏,并且意外的程序状态真的很难看。


Zeus支持接口,用不同的编写的软件模块

程序语言(所以,dll)。例外是一个问题。对于

复杂的应用程序,我更喜欢使用返回值。


PS:顺便说一句,我认为这些问题是其他开发所知的

团队。这就是为什么COM使用返回值而不是例外。
I''m aware that throwing exceptions is not supported by Zeus-Framework,
if you mean that. There are very good reasons not using exceptions
with C++. Since C++ has no GC, it might cause resource leaks and
unexpected program states witch is really ugly.

Zeus supports interfaces, software modules written in different
program languages (so, dll). Exceptions are a problem here. For
complex application, I prefer using return values.

PS: By the way, I think those problems were known to other development
teams as well. Thats why COM uses return values and not exceptions.

在Wed,2007年7月25日11:05:04 -0700,bhadorn写道:
On Wed, 25 Jul 2007 11:05:04 -0700, bhadorn wrote:

ZeusFramework有许多类似于Java的类(列表,地图,

字符串,日历等等)。

它还包括RMI for C ++,Serializing and networking

Seehttp://www.xatlantis.ch/api/zeusbase/index.html
The ZeusFramework has lots of classes similar to Java (Lists, Maps,
String, Calendar and much more).
It also includes RMI for C++, Serializing and networking
Seehttp://www.xatlantis.ch/api/zeusbase/index.html



< offtopic>不幸的是,Zeus似乎没有意识到RAII,这是C ++的核心成语,

例如 http://www.xatlantis.ch/examples/zeu...ple.html#Step4


将Java库的可用性和便利性转移到C ++是一个好主意(非常需要可用的C ++库)。但是这些库应该使用C ++样式和惯用语来提供更好的解决方案(例如用于资源处理)。

< / offtopic> ;


-

Roland Pibinger

最好的软件简单,优雅,充满戏剧性 - Grady Booch


<offtopic>Unfortunatey, Zeus seems to be unaware of RAII, the central C++ idiom,
e.g.http://www.xatlantis.ch/examples/zeu...ple.html#Step4

Tranferring the usability and convenience of Java libraries to C++ is
certainly a good idea (usable C++ libraries are sorely needed). But
these libraries should use C++ styles and idioms where they provide
much better solutions (e.g. for resource handling).
</offtopic>

--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch



这篇关于C ++中Java API规范的对应部分是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆