What am I doing wrong in this? Error array bound is not an integer constant before ']' token
using namespace std;
bool cars_present[20];
int count = 0;
void sortArrayIntegers(int IDs[count]);
struct date
{
int day, month, year;
};
struct car
{
int ID;
char owner_name[20], owner_surname[20], make[20], model[20], phone_number[10];
struct date reg_date, ns_date;
}car_directory[100];
CodePudding user response:
void sortArrayIntegers(int IDs[count]);
Please try changing this line to
void sortArrayIntegers(int IDs[]);
You dont need to provide a value here