我试图在我试图从 C 转换为 C++ 的程序中调用我的 main 中的函数。我在其他函数中的所有函数调用都编译没有错误,但是当它到达主函数中的一个函数调用时,我得到  no matching function for call to contacts::menu(contacts*[5], int*, int&, char[50])' 
这是主要的:
int main() {
 contacts *friends[5];
 char buffer[BUFFSIZE];
 int counter=0;
 int i=0;
 contacts::menu(friends, &counter,i,buffer);
 getch();
 return 0;
}
这是带有函数声明的类:
class contacts
{
  private:
          char *First_Name;
          char *Last_Name;
          char *home;
          char *cell;
  public:
  //constructor
         contacts()
         {
         }       
//Function declarations 
static void menu(contacts*friends ,int* counter,int i,char buffer[]);
};
这是菜单功能的开始部分,以便您了解它的标签:
void contacts::menu(contacts*friends,int* counter, int i,char buffer[]) 
{
  int user_entry=0;
  int user_entry1=0;
  int user_entry2=0;
  char user_entry3[50]={'\0'};
  FILE *read;
  printf("Welcome! Would you like to import a file? (1)Yes or (2) No");
  scanf("%d",&user_entry1);
  if(user_entry1==1)
    {
     printf("Please enter a file name");
     scanf("%s",user_entry3); 
     read=fopen(user_entry3,"r+");
就像我说的,我程序中的其他函数没有收到任何错误,但是这个有。我是 C++ 新手,所以我不确定是否需要添加一些特殊的东西来调用 main 中的函数。