想要的日期类 [英] Date class wanted

查看:49
本文介绍了想要的日期类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


我对这个论坛很新。目前我正在尝试学习C ++。我正在阅读The C ++ Programming Language (特别版,由Bjarne Stroustrup撰写)并试图解决这些练习。


第10章的练习3说:查找日期课程在商业用途。批评它提供的设施。如果可能,然后与真实用户讨论 Date


要做这个练习:任何人都可以给我一个指向工业实力开源 Date 类源代码的指针吗?


(仅供参考,我已经练习了2并实施了我自己的 Date 课程,我想比较一下,)


提前致谢!


此致,

格哈德


PS对不起,我不是母语人士。请道歉任何错误。

Hi, all!

I am brandnew to this forum. Currently I am trying to learn C++. I am reading "The C++ Programming Language" (special edition, written by Bjarne Stroustrup) and trying to solve the excercises.

Excercise 3 of chapter 10 says: "Find a Date class that is in commercial use. Critique the facilities it offers. If possible, then discuss that Date with a real user."

To do that excercise: Can anybody give me a pointer to the source code of an industrial strength Open Source Date class?

(FYI, I did already excercise 2 and implemented my own Date class and I want to compare,)

Thanks in advance!

Sincerely,
Gerhard

P.S. Sorry, I am not a native speaker. Please apologize any errors.

推荐答案

您是否尝试过 Google 呢?


看一下boost项目。他们使用C ++对象做了很多工作。
Take a look at the boost project. They do a lot of work with C++ objects.



您是否尝试过 Google 了吗?
Did you try Google yet?



不,我没有,因为我希望真正的用户 - 作为练习状态 - 会给我一个暗示他/她使用的日期等级。


但我可能高估了这部分练习的重要性。 Stroustrup教授的练习有时(或多或少隐藏)教学目的远远超出了对特定语言细节的学习。据报道(Kent Beck的书),面向对象编程是开发人员之间的交互比以往更重要(CRC卡,极限编程......)。也许这个练习应该是这种交互技术的先驱。


我的另一个偏见是我的主要工作目前是SQL和PL / SQL。在那里,我必须使用日期。数据类型及其操作相当重要。


所以我的问题应该是有没有人大量使用与date相当的C ++日期类。 SQL的dataype并且可以给我一个指向其源代码的指针吗?


但是无论如何,这个Google日期类列表非常有趣。我会调查。


非常感谢你!

格哈德


P.S.用字典检查,我发现didactic在英语中也有贬义。请注意,我想使用didactic只有在属于科学/奖学金/成为一名优秀教师/教师的艺术的意义上。

No, I didn''t, because I hoped that "a real user" - as the excercise states - would give me a hint to the date class that s/he uses.

But I am probably overestimating the importance of this part of the excercise. Prof. Stroustrup''s excercises have sometimes (more or less hidden) didactic purposes which go far beyond the learning of the particular language detail. Reportedly (Kent Beck''s books), in Object Oriented Programming is the interaction between developers more important than ever (CRC Cards, Extreme Programming...). Perhaps this exercise is supposed to be a starter to such interaction techniques.

My other bias was that my main workhorse is currently SQL and PL/SQL. There I have to use the "date" datatype and its operations rather heavily.

So my question should have been "Does anybody use heavily a C++ date class comparable to "date" dataype of SQL and can give me a pointer to its source code?"

But anyway, this Google list of date classes is very interesting. I will it investigate.

Thank you very much!
Gerhard

P.S. Checking with a dictionary, I found that "didactic" has in the English language also a pejorative meaning. Please note that I want to use "didactic" only in the sense of "belonging to the science/scholarship/art of being a good teacher/instructor".


这篇关于想要的日期类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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