I see this error when compile my program:
Cannot convert 'char*(*)[6]' to 'char***' for argument '2' to 'void prac(int*,char***)'
How can I fix the code ? Please help me.
Code:
#include <iostream>
using namespace std;
void prac(int *argc, char **b[])
{
//body
//
}
int main()
{
char *ptr_array[] = {"ssl","0.0.0.0","","tcp","0.0.0.0","8080"};
prac(&argc, &ptr_array);
return 0;
}
Aucun commentaire:
Enregistrer un commentaire