hi..
In .h file I have declared
Qt Code:
union Uni1{ int a_data; float b_data; }UTempTo copy to clipboard, switch view to plain text mode
In .cpp I want to access the variables in the union i.e UTemp.a or UTemp.b;
But while compiling error is generated :
Pls helperror: a_data has not been declared.
error: a_data has not been declared.




Reply With Quote
Bookmarks