edit> sorry for double post fbody :P
----> string ary[26] = {"Zero","One", "Two", "Three", ... , "Twenty-Five"}
You can do that also, it doesn't matter.
It's doing this,
//pseudo
ary[25] ..... this equates to
ary[0]
ary[1]
ary[2]
.
.
.
ary[23]
ary[24]
//THEN - compiler does this
ary[0] = "whatever is first"
ary[1] = "whatever is next"
.
.
.
//So - you could actually do this
ary[25] = {"Ten", "Eleven", "Seven", "Horse", "Chair", ...}
//and be completely legal as far as the compiler is concerned.
cout << "Give me a number: " << flush ;
For lack of a detailed description, flush as opposed to endl just sets the cursor at the end of your line to make input cleaner. So instead of,
Please enter your name:
Bobby Joe
You can have something like,
Please enter your name: Bobby Joe
-----> for (num=0,ary=0;num<=25,ary<=26;num++,ary++)
Not at all, sorry. Here's a hint - you only use one statement in each blank. So take out everything and re-look at my for() loop. Remember, if you start at 0 and your array is only 25 items large, your indexing doesn't go all the way to 25, right? So even in the case of trying to access ary[25], it would blow up.
Your for loop should look like this
for (int i = 0 ; i < ... ; i++)
Question: ary[26]?
Sorry, wrong again here. You want to output what is in the current index according to your for() loop. So remember, your variable i is starting at 0 (look at your for() loop) - so as i is incremented, you can use that to index your array, right?