I am new to this. I am trying to write code to update every other element in an array. Here is all I have.... can't find anything to show me how to do this.
#include<iostream>
using std::cout;
using std::endl;
int palpha = 0;
int main()
{
char* alphabet[] ={ "A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
};
//char* alphanew[26];
While (palpha <= 26)
//alpahnew = alphabet;
palpha +=2;
return 0;
}
I would appreciate any help you can give me.
Lynne