[HELP]Ping bomber
I am working on making a ping bomber. here is my code so far...
This works for one ping command... but at soon as i add in another
i get errors when i compile it..
whats wrong with my code?
Code:
#include <iostream>
#include "windows.h"
#include <string>
using namespace std;
int system(const char *command);
int main()
{
system ("color a");
std::string website;
std::cout<<"Enter a website that you want to bomb: ";
std::cin>>website;
std::string command = "ping " + website;
system((const char*)command.c_str());
std::cout << "Attack Complete" << endl;
system ("pause");
return (0) ;
}
Code:
std::string command = "ping " + website;
whats wrong with my code?
