Function not declared in this scope

前端 未结 2 1201
一整个雨季
一整个雨季 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

    You will need to define that function before it is used. For larger programs it is usually helpful to have a header file, though not needed for a single function. Just place a

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

    at the top of your file before MAIN. If you continue to add things, I suggest using a header file though.

提交回复
热议问题