heres the code
#include <iostream>
#include <fstream>
using namespace std;
int main () {
double pinged;
string pingstuff, sendstring, info;
char buffer[50];
cout << "Enter Website: ";
cin.getline(buffer, 50);
pingstuff = buffer;
info = system(sendstring.c_str());
info;
sendstring = "ping " + pingstuff;
ofstream myfile;
myfile.open ("save.txt");
myfile << "pinged sites are ";
myfile << info;
myfile.close();
system("PAUSE");
return EXIT_SUCCESS;
}


Sign In
Create Account


Back to top









