1 2 3 4 5 6 7 8 9 10 11 12 13
|
int main()
{
string str = "BE";
int b = 0 ;
const int arraySize2 = 19;
char array2[arraySize2] ={'A','B','E','F','G','H','J','K','N','O','P','Q','R','S','T','U','W','Y','Z'};
for (int i = 0 ; i < str.length() ; i ++)
int b = str.find(array2[i]);
cout << b << endl;
|