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" <firstname.lastname@example.org> wrote:
> I think you are taling about an array of values, but you werent very
>say you have a program that keeps track of scores. you can store several
>scores in one variable name using an array.
>scores = 1; // This will store 1 in the first element.
>scores = 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.
>"Matt" <email@example.com> wrote:
>>Is there a way to store several variables into 1 variable?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL