Function not declared in this scope

前端 未结 2 1111
一整个雨季
一整个雨季 2021-01-29 07:34

I dont know how to declare this function.

Error: In function \'int main(int, char**).
line 25 colume 16 [Error] \'histo

2条回答
  •  离开以前
    2021-01-29 07:48

    Functions need to be declared before they're used in C. Either move the definition of histogram up above main, or add

    void histogram(char[N][M]);

    to the top of the file.

提交回复
热议问题