Array Help

I'm trying to create a loop in order to fill my array with character values. But for some reason, during my loop it gives me two errors: 1. Telling me that variable "x" is not a template, and 2. under my ROWS within the for loop, it's telling me the expression must have a constant value.

This isn't the entirety of my code, but the parts in question.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  #include <iostream>
using namespace std;

const int ROWS = 15;
const int COLS = 15;

char symbol;
char PSquare[ROWS][COLS];

void FillBorder(char PSquare[][COLS], char symbol)
{
	cout << endl << "BOX PATTERN" << endl << endl;

	for(int x = 0, x < ROWS; x++)
}
for(int x = 0; x < ROWS; x++)
I'm not sure how I missed that.. Very much appreciated. thanks!
Topic archived. No new replies allowed.