Error C2371: redefinition; different basic types - why?

后端 未结 3 989
一个人的身影
一个人的身影 2021-01-04 03:20

I have the following code:

#include 
#include 

// helping
void sortint(int numbers[], int array_size)
{
  int i, j, temp;

           


        
3条回答
  •  暖寄归人
    2021-01-04 04:11

    You are trying to call eb and ec before they are declared or defined. Move the definition of ec before eb and both before exera. You could also forward declare your functions before you define any of them like so:

    void eb(int* ptr) ;
    void ec(int* arr, int size) ;
    

提交回复
热议问题