Getting an error with array length

Not sure why I'm getting an error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  char sep[] = { ' ', ',', '.', ':', '\t' };
  string words[];
  words = value.find(sep); 
  string someWords[] = new string(5); // is this a bracket or parenthesis?
			
  int i = 0, k=0;

  while((i <= words.length-1) && (k <= 4)) //getting error here with length
  {
	if(words[i] == "")
	{
  	  i++;
	  continue;
				}
Last edited on
Topic archived. No new replies allowed.