Mega Code Archive
Loop through the string array
#include
#include
#include
#include
using namespace std;
int main( ) {
string arrStr[5] = {"A", "B", "C", "D", "E"};
for (string* p = &arrStr[0]; p != &arrStr[5]; ++p) {
cout << *p << endl;
}
}
/*
A
B
C
D
E
*/