Print all

Last edited on
Ok, I got that to work, but it only prints the number I inputed. How can I have it print all of it?

So it prints...

Man
Aunt
Uncle
Woman


or whatever order they entered it.
Why start a new topic here with just a link to an existing one?????
What are you trying to do?

Something like this?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Not tested.
#include <iostream>

int main()
{
    string words[4]
    {
        "word0",
        "word1",
        "word2",
        "word3"
    }

    for(int i; i<words; i++)
    {
        std::cout << word[i] << "\n";
    }
    return 0;
}




I'm not sure if this helps at all.
Last edited on
Topic archived. No new replies allowed.