Seafury888
Programmer
I'm wondering how to pass an array of strings to a function.
Ie:
Any help with this issue would be awesome.
Thanks
Seafury
Ie:
Code:
//variable declaration
char roman1[50][20];
//function prototype
void Thousands(int[], int[], int, char[]);
//function call
Thousands(num1, num3, j, roman1[20]);
//function header
void Thousands(int num1[], int num3[], int j, char roman1[])
//this line is in the function and gives me the error, cannot convert 'int' to 'char *'
strcpy(roman1[j],"M");
Any help with this issue would be awesome.
Thanks
Seafury