In code:
struct tagPaint
{
}Paint,//<<<--------------what's this (Paint)?
*pPaint;//<<<-------------and this(*pPaint)?
I mean do I declare variable with name Paint of type tagPaint and pointer called pPaint to tagPaint?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Paint is a variable of type tagPaint. pPaint is a pointer to type tagPaint. If you want them to define types, then you need:
but this is C usage – you should not be writing code like that in C++. and even in C, defining a type that hides the fact that something is a pointer is considered bad style.