string pal1, pal2, pal3, ... getline(inFile, pal1); getline(inFile, pal2); ...
// an array of 10 integers int numbers[10]; // an array of 20 floats const int MAX_GRADES = 20; ... float grades[MAX_GRADES]; // a array of strings const int MAX_PHRASE_COUNT = 1000; ... string phrases[MAX_PHRASE_COUNT]; //an array of characters char vowels[] = {'a','e','i','o','u'};
int a[10],b[10] // this will compile // but it does not do what you think it does. a = b;
int a[10],b[10] // this will compile // but it does not do what you think it does. a == b;
int a[10],b[10] // this will compile // but it does not do what you think it does. cout <<a
// this will compile // but a is passed to param by reference void Foo(int param[10]); ... int a[10] Foo(a);
// this will not compile int[10] Foo();