简单的 C++项目样本

发布于 2024-09-28 02:48:03 字数 1537 浏览 5 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

仙女 2024-10-05 02:48:03

我建议从C++ 语言教程开始。那里有很多很好的例子,包括关于 OOP 的部分。

I'd recommend starting at the C++ Language Tutorial. There are lots of good examples there, including a section on OOP.

无风消散 2024-10-05 02:48:03

如果您想学习 OOP,请尝试观看这些讲座视频,它们对于 Java 初学者来说非常棒,但您不应该将自己局限于 C++ 作为学习平台。

http://www.youtube.com/watch?v=KkMDCCdjyW8

If you want to learn OOP try looking at these lecture videos, they are fantastic for beginners its in Java but you shouldnt limit yourself to C++ as a learning platform.

http://www.youtube.com/watch?v=KkMDCCdjyW8

遥远的她 2024-10-05 02:48:03

你可以看一下这本C++书籍:C++ Primer,里面有很好的实践练习,还有练习题的答案书

You can take a look at this C++ book: C++ Primer which has good practice exercises and there is also a Answer book for the exercise problems.

染火枫林 2024-10-05 02:48:03

除了所有精彩的讲座/书籍之外,我还鼓励您练习几次。我喜欢使用保龄球型练习来做到这一点。从技术上讲,这是一个重构练习,但它非常有趣,而且我相信它是有效的。

In addition to all the fabulous lectures / books, I'd encourage you to practice a few times. I enjoy using the bowling kata exercise for this. Technically, this is a refactoring exercise but it is quite fun and I believe effective.

人海汹涌 2024-10-05 02:48:03

我找到了这样一个示例项目。
问题是它有很好的文档记录,但文档语言是德语。另外还有一些类名是德语等。也没有包含类图等文档。

几个月前,我编写了该项目,向新学徒展示一些 C++ 和一些面向对象的任务。希望它对于您的目的来说不会太复杂。

此示例并不完美,但也许这就是您正在搜索的内容,或者其他用户可以更好地了解所质疑的内容。

下载(Rapidshare.com)

PS:以后应该如何上传这样的东西?其中包含几个源文件(pastebin 不适合类似的事情)。我不会将 Sourceforge 用于这样的项目。有类似 stackoverflow 附件功能的东西吗?

I've found such a sample project.
The problem is that it is documented well, but the documentation-language is German. There additionally are some classnames which are German etc. There also is no documentation like a class diagram included.

I've written that project some months ago to show a new apprentice some C++ and some object-oriented tasks. Hope its not too complex for your purposes.

This example is not perfect, but perhaps it is what you're searching or other users could get a better idea of what is questioned.

Download (Rapidshare.com)

PS: How should someone upload such things in the future? There are several source-files included (pastebin wouldn't be good for something like that). I wouldn't use Sourceforge for such a project. Is there something like a stackoverflow-attachment feature?

梦言归人 2024-10-05 02:48:03

本周早些时候,我用 C++ 制作了保龄球比赛的截屏视频。您可以在这里观看:

https://web.archive.org/web/20200804075400/http://cheezyworld.com/2011/01/12/bowling-game-in-c/

I did a screencast of the bowling game in C++ earlier this week. You can watch it here:

https://web.archive.org/web/20200804075400/http://cheezyworld.com/2011/01/12/bowling-game-in-c/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文