chap part V find the error
char greeting[ ] = {'H', 'e', 'l', 'l', 'o'}; cout << greeting;
A null terminator must be specified in the initialization list.
float rating[ ];
For the array to be implicitly sized there must be an initialization list.
int array 1[4], array2[4] = {3, 5, 9, 12}; array = array2;
The assignment operator cannot be used to assign the contents of one array to another, in a single statement.
int hours[3] = 8, 12, 16;
The initialization list must be enclosed in braces.
int table[10] for (int x = 0; x < 20; x++) { cout << "Enter the next value: "; cin >> table[x]; }
The loop will write data past the end of the array.
void showValues (int nums) { for (int count = 0; count < 8; count ++) cout << nums[count]; }
The parameter must specify the number of columns, not the number of rows.
int size; double values[size];
The size declarator cannot be a variable.
int collection[-20]
The size declarator cannot be negative.
int numbers [8] = {1, 2, , 4, , 5};
Two of the initialization values are left out.
void showValues (int nums[4][ ]) { for (int count = 0; rows < 4; rows++) for (cols = 0; cols < 5; cols++) cout << nums[rows][cols]; }
You do not use an = operator before the initialization list.