#include #include #include #include #include std::atomic running(false); void spam(const std::vector& 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 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; }