Benjamin
./عضو جديد



السمعة:
- إنضم20 سبتمبر 2023
- المشاركات 15
- مستوى التفاعل 40
- النقاط 13
كود:
#include <iostream>
#include <thread>
#include <chrono>
#include <Windows.h>
using namespace std;
string randomtitle(const int len)
{
static const char random[] =
"123456789"
"asdfghjkl";
string t;
t.reserve(len);
for (size_t i = 0; i < len; i++)
{
t += random[rand() % (sizeof(random)) - 1];
}
return t;
}
int main()
{
while (true)
{
SetConsoleTitleA(randomtitle(10).c_str());
this_thread::sleep_for(chrono::seconds(0));
}
}
التعديل الأخير بواسطة المشرف: