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.
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.
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.
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?
发布评论
评论(6)
我建议从C++ 语言教程开始。那里有很多很好的例子,包括关于 OOP 的部分。
I'd recommend starting at the C++ Language Tutorial. There are lots of good examples there, including a section on OOP.
如果您想学习 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
你可以看一下这本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.
除了所有精彩的讲座/书籍之外,我还鼓励您练习几次。我喜欢使用保龄球型练习来做到这一点。从技术上讲,这是一个重构练习,但它非常有趣,而且我相信它是有效的。
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.
我找到了这样一个示例项目。
问题是它有很好的文档记录,但文档语言是德语。另外还有一些类名是德语等。也没有包含类图等文档。
几个月前,我编写了该项目,向新学徒展示一些 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?
本周早些时候,我用 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/