Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Symus

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    712

    Re: Help with recursive function

    I finally managed to resolve the situation. And here it is the final code:



    #include <iostream>
    #include <cstdlib>
    #include <iomanip>

    using namespace std;
  2. Replies
    9
    Views
    712

    Re: Help with recursive function

    OK, why is this not working? :(

    And how can I fix it?
  3. Replies
    9
    Views
    712

    Re: Help with recursive function

    Hello guys,

    Thanks for your help and suggestions. I managed to solve this task without converting to string. Here is my code if someone is interested:



    #include <iostream>
    #include...
  4. Replies
    9
    Views
    712

    Help with recursive function

    Hi all,

    I am trying to solve the following task:
    -Write a recursive function that prints an integer with decimal separators. For example, 12345678 should be printed as 12,345,678.

    The problem...
  5. Re: Binary Tree Post-Order Traversal Issue

    Oops...yes, copy-paste!!! Sorry.

    I just tried it and it works...even for the in-order traversal... I don't know what I did before but I guess that I was calling the wrong functions. I feel so...
  6. Re: Binary Tree Post-Order Traversal Issue

    I understand what you mean. Let me show you:



    void TreeNode::postorder() const
    {
    if (left != NULL)
    {
    left->preorder();
    }
  7. Re: Binary Tree Post-Order Traversal Issue

    I tried this the first time but when I run the program the output is wrong...I don't know why it happens. That's why I decided to do it with argument :)
  8. Re: Binary Tree Post-Order Traversal Issue

    Thank you for your help.

    I found one more mistake in the same function, the cout should be a.data instead of data. The program now works accurately.

    Thanks :)
  9. [RESOLVED] Binary Tree Post-Order Traversal Issue

    Hi all,

    I am trying to develop a function which prints a binary tree using post-order traversal (left, right, root) but I am experiencing some troubles. The code
    is compiled but when I run the...
  10. Re: Problem with reversing a string using seek/tell

    Thanks for your help! :)
  11. Re: Problem with reversing a string using seek/tell

    I see. So is there a way to do this with seek/tell. Could also point me the easiest way of reversing a string?

    Thank you in advance. :)
  12. Re: Problem with reversing a string using seek/tell

    Thank you Paul,

    But the assignment requires to use these pointers and I think that my problem is right there. I think my positions are not correct.
  13. Problem with reversing a string using seek/tell

    Hello guys,

    I have an assignment that asks me to write a program which reads all lines from a text file (one by another), reverses them and write to the same file. I also have a pseudocode with...
  14. Replies
    2
    Views
    813

    Re: Mapping a linked list issue

    Hello Paul,

    First I would like to thank you for your reply - so thank you :)

    It is a little hard for me to fully understand the code above because we did not learned all the things which I see...
  15. Replies
    2
    Views
    813

    Mapping a linked list issue

    Hello guys,

    I am new to the forum and I kindly ask for help :) (excuse me for my bad language)

    I have a task to write a program Simple Diary (in C++) which has to store notes in a text file but...
Results 1 to 15 of 15


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center