George Menoutis - 2010-10-04

Hello. I have this problem:

Code:
cout<<"D)x is "<<x->key<<endl;<br>y->parent=x->parent;
cout<<"E)x is "<<x->key<<endl;

Output:
D)x is 11
E)x is 0

Why? there are no other lines between the two couts. I did not change x->key,
did I?
I suppose either I'm too dumb about something (99.5%) or I found a bug(0.5%)

Program: Dev-C++ v 4.9.9.2
OS: Windows 7 Professional 64-bit
Compiler log follows

Compiler: Default compiler
Building Makefile: "D:\Programming\HomemadeC++\Projects\PC 2\red
black\Makefile.win"
Executing make...
make.exe -f "D:\Programming\HomemadeC++\Projects\PC 2\red black\Makefile.win"
all
g++.exe main.o -o "Red-Black tree.exe" -L"C:/Dev-Cpp/lib"

g++.exe main.o -o "Red-Black tree.exe" -L"C:/Dev-Cpp/lib"

Execution terminated
Compilation successful