#include
#include
#include
std::string TitleArray[] =
{
"Window title 1",
"Window title 2",
"Window title 3",
"Window title 4",
"Window title 5"
};
using std::cout;
using std::endl;
int _tmain(int argc, _TCHAR* argv[])
{
srand ( time(NULL) );
for(int i=0; i<5;i++)
{
std::string wts = TitleArray[rand() % 5];
cout << wts.c_str() << endl;
}
return 0;
}
C++ ile böyle yapabilirsin.