Array Help Please

Goal:
Write a program that compares the values stored in the first array to the user inputted values in the second array.

In order to fix this error:

http://msdn.microsoft.com/en-us/library/663y2htx.aspx

I had to change my array initialization to one with a star in front of it:

 
char a1[]={"a","d","b","b","c","b","a","b","c","d","a","c","d","b","d","c","c","a","d","b"};


to:

 
char *a1[]={"a","d","b","b","c","b","a","b","c","d","a","c","d","b","d","c","c","a","d","b"};


I also changed my 2nd array to one with a star in front of it:

 
char *a2[20];


What does this mean exactly? Putting a star in front of an array?

Also, I am now getting an "unhandled exception" when I try to get input for my 2nd array:

 
cin>>a2[i];
Figued it out. Using char arrray with double quotes
Topic archived. No new replies allowed.