heres what im trying to do:

char cMain =('u', 's', 'e', 'r');
char cTest =('t', 'e', 's', 't');
cout << "enter a command";
cin >> someVariable

im trying to get it so cMain and cTest are stored in someVariable
I think i have to use cases but im not sure. but how do i put cMain and cTest
into some Variable where some variable is the command i am asking about.



"Jason Stewart" <kahuna01@hotmail.com> wrote:
>
>Matt,
> I think you are taling about an array of values, but you werent very

specific.
>say you have a program that keeps track of scores. you can store several
>scores in one variable name using an array.
>
>int scores[5];
>
>scores[0] = 1; // This will store 1 in the first element.
>scores[1] = 45; // This will store 45 in the 2nd element.
>
>One thing to remember is that the array starts with 0, not 1, so your array
>of 5 integers named scores will be numbered with the index of 0 to 4.
> I hope this helps. If not, then ask a more specific question.
>
>Cheers,
>Jason
>
>
>
>"Matt" <coolguyhb2000@socal.rr.com> wrote:
>>
>>Is there a way to store several variables into 1 variable?

>