aj2903
3rd December 2008, 14:30
hi..
In .h file I have declared
union Uni1{
int a_data;
float b_data;
}UTemp
In .cpp I want to access the variables in the union i.e UTemp.a or UTemp.b;
But while compiling error is generated :
error: a_data has not been declared.
error: a_data has not been declared.
Pls help
In .h file I have declared
union Uni1{
int a_data;
float b_data;
}UTemp
In .cpp I want to access the variables in the union i.e UTemp.a or UTemp.b;
But while compiling error is generated :
error: a_data has not been declared.
error: a_data has not been declared.
Pls help