Unresolved External Symbol - How to fix?

前端 未结 4 365
故里飘歌
故里飘歌 2021-01-21 12:48

I\'m pretty new to programming. I have run into this error that I can\'t figure out. You should be able to put in a score and it will use the information that is pre put in the

4条回答
  •  盖世英雄少女心
    2021-01-21 13:24

    The problem is that your function definition is named differently to your function declaration:

    void checkScore( int scores[], int storage[]);
    void checkGrade(int scores[], int storage[])
    

    You need to pick one or the other. The compiler gets to your call to checkScore and sees that there is no definition for it. Changing the definition to be called checkScore would fix it.

提交回复
热议问题