help me to sort this out..

Consider a 5-by-5 array of characters. Write a C++ program to accomplish each of the following operations:
a. Declare the above array.
b. Read the array.
c. Find and print the number of vowels (a,e,o) in the off diagonal of the array.
d. Replace each non-space character in the array by its next character value in the alphabetic order (Example: letter b will be replaced by c, letter M will be replaced by N, and so on).

1
2
//declares the array
int MyArray[5][5];


1
2
3
4
5
6
7
//prints the array
for(int i = 0; i < 5; i++)
{
  for(int j= 0; j < 5; j++)
     cout << MyArray[i][j] << " ";
  cout << endl;
}   



not exactly sure what C is asking for..

1
2
3
for(int i = 0; i < 5; i++)
  for(int j= 0; j < 5; j++)
     MyArray[i][j]++;

Topic archived. No new replies allowed.