Type: Posts; User: Symus
Search took 0.02 seconds.
April 15th, 2013, 06:28 PM
I finally managed to resolve the situation. And here it is the final code:
using namespace std;
April 10th, 2013, 03:57 AM
OK, why is this not working? :(
And how can I fix it?
April 8th, 2013, 07:11 PM
Thanks for your help and suggestions. I managed to solve this task without converting to string. Here is my code if someone is interested:
April 7th, 2013, 05:32 PM
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.
March 3rd, 2013, 03:01 PM
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...
March 2nd, 2013, 03:07 PM
I understand what you mean. Let me show you:
void TreeNode::postorder() const
if (left != NULL)
February 28th, 2013, 09:03 AM
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 :)
February 26th, 2013, 10:21 PM
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.
February 26th, 2013, 08:02 PM
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...
August 8th, 2012, 01:24 PM
August 8th, 2012, 12:52 PM
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. :)
August 8th, 2012, 12:14 PM
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.
August 8th, 2012, 11:43 AM
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...
July 10th, 2012, 06:16 AM
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...
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...
Click Here to Expand Forum to Full Width