Run it
Copy the script and paste it into your executor.
#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 = ;
std::(spam, cussWords, interval).();
} (command == ) {
running = ;
} (command == ) {
running = ;
;
}
}
;
}{In TESTING Try it Out!!}

Universal