Well, I was wondering if it was possible, which i'm sure it is, to create an array of strings? If so please post the code needed to do so.
Thanks.
Printable View
Well, I was wondering if it was possible, which i'm sure it is, to create an array of strings? If so please post the code needed to do so.
Thanks.
try creating an array of strings as you would an array of ints, and tell us what you come back with.
Code:#include <iostream>
#include <string>
int main()
{
string array_of_strings[] = "hello", "how", "are", "ye", "?" ;
for (int i=0; i<5; i++)
{
cout << array_of_strings[i] << " " ;
}
}
Wow! You are really helpful.
So... can you please do my game for me?
Mario F why don't you read the announcements instead of asking others to do your work for you!
http://cboard.cprogramming.com/annou...t.php?f=3&a=39
...nyuck, nyuck, nyuck...
darn!
I bet it's homework too!
[sarcasm]
Well mario is in his 30's, so I'll bet that it's a homework assignment for his
students and he's too lazy to come up with a sample solution for them!!!
[/sarcasm]
LOL :DQuote:
Originally Posted by Mario F.