Without going into to much detail. I would suggest that you use this to ping a website.
Of course you would have to build a client side connection to ping it.
Code:https://support.microsof*****m/default.aspx?scid=kb;en-us;170591
Alright lets do this
Im trying to make a simple C++ console program that, with the website name given in a string, it pings it. Heres my code sofar but i dont know how to make it ping the entered string
Is it even possible?
[php]#include <iostream>
#include <string>
using namespace std;
int main()
{
string website;
cout << "Enter the website you want to ping\n";
cin >> website;
system("ping ");
return 0;
}
[/php]
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
Without going into to much detail. I would suggest that you use this to ping a website.
Of course you would have to build a client side connection to ping it.
Code:https://support.microsof*****m/default.aspx?scid=kb;en-us;170591
hmm idk how to make a ping sender in C++
but i found some VB tuts for that :/
u can search them on youtube
CANNIBAL CORPSE P0WNS
Code:char tcmd[128]; sprintf_s(tcmd, 128, "ping %s", ip); system(tcmd);
Ah we-a blaze the fyah, make it bun dem!
Kallisti (08-02-2010)
No credits to me but this should work. Also can use the commandline to ping as well.
C:>ping xxx.xxx.xxx.xxx.
C:>exit
Code:#include <iostream> #include <string> #include <windows.h> using namespace std; static string host; static string ping_again; void ping() { system("cls"); cout << "Host: "; cin >> host; system (("ping " + host).c_str()); cout << endl; cout << "(Y)es or (N)o\n\n"; cout << "Ping another host: "; cin >> ping_again; if (ping_again == "Y" || ping_again == "y") { system("cls"); ping(); } else if (ping_again == "N" || ping_again == "n") { system("exit"); } } int main() { SetConsoleTitle("Ping in C++ "); ping(); return(0); }
Kallisti (08-02-2010)