مضى على الشبكة و يوم من العطاء.

تغير عنوان التطبيق عشوائي | ++C ( كود بدون شرح )

Benjamin

./عضو جديد

السمعة:

كود:
#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));
    }
   
}
 
التعديل الأخير بواسطة المشرف:
الله يعطيك الف عافيه أبدعت ❤️
 

آخر المشاركات

عودة
أعلى