online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class node: def __init__(self, value = 0, depth = 0, child = []): self.value = value self.depth = depth self.child = child a = node(1,0) b = node(2,1) c = node(3,1) print("object A:",a) print("object B:",b) print("object C:",c) # b and c have no children print("Children of B:",b.child) print("Children of C:",c.child) a.child.append(b) a.child.append(c) # a now has 2 children, b and c print("Children of A:",a.child) # If I check "B" and "C" values it works ok print("Value of B:",a.child[0].value) print("Value of C:",a.child[1].value) # but if I try to check b or c child list, I get A's children print("Children of B:",a.child[0].child) print("Children of C:",a.child[1].child)

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue