Oct 14, 2020 at 3:59am
Last edited on Oct 14, 2020 at 1:17pm
Oct 14, 2020 at 1:17pm
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.
Oct 14, 2020 at 4:23pm
Why start a new topic here with just a link to an existing one?????
Oct 14, 2020 at 6:41pm
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 Oct 14, 2020 at 6:42pm