c ++程序的代码 [英] the code for a c++ program

查看:64
本文介绍了c ++程序的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求使用二叉树编写一个词干(家谱)程序,我很困惑如何做到这一点,所以任何身体都可以帮助我。

解决方案

< blockquote>我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。

亲自尝试,您可能会发现它并不像您想象的那么难! />


如果您遇到特定问题,请询问相关问题,我们会尽力提供帮助。但是我们不会为你做这一切!



这不是一个难题,但它会教你很多关于指针以及它们是如何工作的。如果你不理解这些东西,那么C ++的其余部分将完全没有任何意义 - 所以你做到这一点非常重要,或者至少尝试真的,真的很难弄清楚要做什么 - 它真的是你学习这个基本技术的唯一方法。

是的,我可以给你代码:但除了这个有用之外,这并没有告诉你什么 - 你永远不明白为什么,或者如何。



试一试 - 继续,这很简单!


i have been asked to write a stemma(family tree) program using binary tree and i am confused to how to do that so can any body help me.

解决方案

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!

This isn't a difficult problem, but it teaches you a lot about pointers and how they work. And if you don't understand this stuff, then the rest of C++ is going to make absolutely no sense whatsoever - so it is very important that you do this, or at least try really, really hard to work out what to do - it really is the only way you will learn this very basic technique.
Yes, I could give you the code: but that doesn't tell you anything except "this works" - and you never understand why, or how.

Try it - go on, it's pretty simple!


这篇关于c ++程序的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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