Home > Back-end >  For help! Encounter when programming with visual studio2019C tip: no member of the class
For help! Encounter when programming with visual studio2019C tip: no member of the class

Time:09-27


Why write to have data members and member functions, it is not

CodePudding user response:

Function in the front of the domain name written inside and outside

CodePudding user response:

reference 1st floor qq_46221910 response:
function in front of the inside and outside the domain name to write

What meaning? Some can be in more detail?

CodePudding user response:

refer to the second floor weixin_45802902 response:
Quote: refer to 1st floor qq_46221910 response:
function in front of the inside and outside the domain name to write

What meaning? Some can be in more detail?

When outside the class, the class name refers to the scope, define a member function if only write the function head, which is specified in the outside to realize the first class, then copy function head, followed by curly braces implementation,

CodePudding user response:

reference qq_46221910 reply: 3/f
Quote: refer to the second floor weixin_45802902 response:
Quote: refer to 1st floor qq_46221910 response:
function in front of the inside and outside the domain name to write

What meaning? Some can be in more detail?

When outside the class, the class name refers to the scope, define a member function if only write the function head, which is specified in the outside to realize the first class, then copy function head, followed by curly braces implementation,

I didn't write the domain?

CodePudding user response:

Suggested that post code

CodePudding user response:

Whether to add const

CodePudding user response:

Did not see the functions written in the book outside? Define to the class
  • Related