April 15th, 2013 05:28 PM
I finally managed to resolve the situation. And here it is the final code:
#include <iostream>
#include <cstdlib>
#include <iomanip>
using namespace std;
April 10th, 2013 02:57 AM
OK, why is this not working? :(
And how can I fix it?
February 28th, 2013 08: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 09: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.
Thanks :)
February 26th, 2013 07:02 PM
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...
August 8th, 2012 12:24 PM
August 8th, 2012 11:52 AM
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 11:14 AM
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 10:43 AM
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...