c++ masters HELP please.

this is my code but our professor wants me to make a program wherein the size of the arrays are both numbers and letters for example 'array[1][A]' does anyone knows how to do that?

code:
string marami[6][6]={{"&", "*", "$", "#", "&", "+"},
{"+", "%", "&", "#", "$", "%"},
{"$", "%", "*", "&", "#", "+"},
{"%", "$", "#", "&", "*", "%"},
{"#", "&", "@", "&", "#", "@"},
{"%", "&", "&", "*", "*", "$"}};
That only makes sense if A is the name of a variable of an integer type.
Last edited on
To really use this, A needs to be either:

- The Hex number A (10)
- Interpreted as a ASCII number (65)
- or an enum constant ( like a=1 b=2....z=24 A=25... )
- or as MikeyBoy wrote a variable

how can i make a structure to make the size of that array letters? please help. thanks :)
You've already had several possibilities explained to you. Did your professor give you any more details about what he wanted?
yeah he just wanted me to do that :? sorry i'm not a major in I.T :(
Topic archived. No new replies allowed.