Universal Script 📌
37 Views
53 Executions

EDITOR V1 Revamped

Universal Script 📌
4 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

{In TESTING Try it Out!!}

View Raw
#include <iostream>
#include <thread>
#include <vector>
#include <atomic>
#include <chrono>

std::atomic<bool> running(false);

void spam(const std::vector<std::string>& words, int interval) {
    while (running) {
        for (const auto& word : words) {
            std::cout << word << std::endl;
            std::this_thread::sleep_for(std::chrono::milliseconds(interval));
        }
    }
}

int main() {
    std::vector<std::string> cussWords = {"Family pura Chakka", "Land ka Chata", "100 baap wala", "100 Ma wala", "Sapat Sundari", "Bhen Ke 100 EX", "Baap Gira hua gandu"};
    int interval = 500; // 0.5 seconds

    char command;
    std::cout << "Press 's' to start, 'e' to stop, and 'q' to quit." << std::endl;
    while (true) {
        std::cin >> command;
        if (command == 's' && !running) {
            running = true;
            std::thread(spam, cussWords, interval).detach();
        } else if (command == 'e') {
            running = false;
        } else if (command == 'q') {
            running = false;
            break;
        }
    }
    return 0;
}


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!