Function error Solutions

The central idea:

Since it is a function, on the three elements to consider:

1. The function name

Check the function name if there are problems

2. arguments

Check the parameters match
the main attention here is that if the class is a reference to another file to see if the appropriate header files included

3. Return value

Check the return value matches
what type of return on what type of return

tips:

Silent people is likely to be IDE problems -> To have confidence in their code -

Released seven original articles · won praise 1 · views 31

Guess you like

Origin blog.csdn.net/weixin_45793136/article/details/104890868