February 17th, 2014, 04:18 AM
In fact in my system.... ubuntu linux i don't have that library conio.h and therefore I can't use getch(). It works in windows ok. (but this is a bit of red herring)
February 17th, 2014, 02:36 AM
I am sorry...
I have checked it again. I have compiled them again and now yes I get the same result.
I dont understand what happened. I have to think it was something else.:confused:
February 17th, 2014, 02:22 AM
Yes it's true. I didn't know it.
Then the cast would be this:
Obviously here there's cast ...true????????
because the result of the division would be 7.5 but finally...
February 16th, 2014, 06:19 PM
Do you mean that this is iteration... ?
February 16th, 2014, 06:02 PM
Sorry ... post1 and post2 is a mistake.
I meant pos1 and pos2, are the same.
February 16th, 2014, 05:52 PM
Yes, you are right.
What you are doing is an implicit cast wich is a conversion type from float to int. Your are casting the type float (or double) to int.
February 16th, 2014, 04:28 PM
Judge is the Divers name so the type of Judge should be string or c-style;
So instead of:
You should write;
February 16th, 2014, 03:56 PM
Hi, the next code is right. I mean it works. It gives the sequence of fibonaci numbers ...
using namespace std;
int fibo(int pos)
February 4th, 2014, 06:19 PM
I am writing the overloading operator function (prefix ++) according to my book.. but it doesnt work !!!!!!
But if i write:
it works !!!!!
February 4th, 2014, 10:16 AM
ok thanks... I undertand now :):):):):)
February 4th, 2014, 08:44 AM
In the Standart Template Library I am stading stack and queues.
One way to instantiate is creating a stack that uses an underlying...