🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
RECT Beginner Problem
typedef struct tagRECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
If it's not a Windows program,, of course RECT would have to be defined.
RECT rect1 , rect2 , rect3 , rect4 , rect5 ;
line (21) rect1.left=4615;
rect1.top=3885;
rect1.right=28385;
rect1.bottom=12115;
And here what the Compiler says :
check.cpp(21) : error C2501: 'rect1' : Missing Declaration
check.cpp(21) : error C2371: 'rect1' : Newdefinition ; different Basis Types
check.cpp(21) : error C2239: Unexpected Token '.' after Declaration of 'rect1'
check.cpp(21) : error C2059: Syntax Error : '.'
I've included all important header files!