Hi everyone. Iam a beginning C++ student having trouble with a simple one column char. aray. what I'm trying to do is : display the value of the seventh element of chaacter array f. Wich shoud b 6 if a=0. Please help. Below is my code, so far:
[
#include <iostream>
#include <iomanip>
using namespace std;
int value;
int main()
{
const char(10);
char chABCD[10] = { 'a', 'b', 'c', 'd', 'e', 'f' };
for ( int a = 0; a < 10; a++)
a=(0);
cout << value('f') << endl;]