Takze uz z cireho zufalstva sa musim spytat:
typedef union ExpTreeNode {
struct
{
int constTag;
int constVal;
}operand;
struct
{
int binOp;
ExpTreeNode* leftTree; // tu mi hlasi chybu,
ExpTreeNode* rightTree;
}binaryop;
struct
{
int unOp;
ExpTreeNode* subTree;
}unaryop;
} ExpTree;
error: expected specifier-qualifier-list before 'ExpTreeNode'|
Compilovali sme to dvaja, obaja sme mali rovnaku chybu... a obaja nevieme preco..