No. You can place srand((unsigned) time(0)); on a line right after main().
Don't forget to add #include <ctime> with your other includes, as this srand uses the current time to seed the random number generator.
Well, the problem is because you have only one left parenthesis at the start of babyNames. There are two sets of names, so you need two parenthesis'. ( Look at my code I showed you. ) Plus, you are getting a random number up to 24, but only have 13 boys and 13 girls, names.
One last problem, you forgot the closing quotes on these two lines..
1 2
cout << "Do you wish a Girl's name, or a Boys? << endl; // No quotes found after Boys?
cout << "/tEnter a 'G' or a 'B' << endl; // No quotes found after B'
You may also want to put a space after is, in name is" otherwise the name printed will be connected to it.
Yes you can. I would be glad to offer assistance.
And in answer to
So then for the numbers it should be 13 where i have 24 right?
Correct. Of course, change the 13 later to equal any more names you add. If you want more than 24 girls names and boys names, change it also, accordingly, for the array size. You'll have to recompile, of course.