Hi Everone,
I need Help With My code If there is any mistake Please Let me Know I will correct
it it is a ping program it will ping an ip address or an address like www.daniweb.com
#include <windows.h>
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int choice;
int IP;
int Address;
cout<<"Welcome To Hayzam's Ping"<<endl;
cout<<"Type any one of Thease"<<endl;
cout<<"1 or 2"<<endl;
cout<<"Hint 1:Ping with an IP"<<endl;
cout<<"Hint 2:Ping with an Address 'Eg www.google.com'"<<endl;
cin>>choice;
if(choice == 1)
{
cout<<"Give Me The IP"<<endl;
cin>>IP;
system("ping IP");
}
if(choice == 2)
{
cout<<"Please Give Me The IP"<<endl;
cin>>Address;
system("ping Address");
}
getch();
}