I want to put this code into separate window so that the results are displayed in a custom window not in a command prompt
#include <iostream>
#include <string>
using namespace std;
void main()
{
system("title Find Mac From IP");
system("cls && Color DF");
cout<<"--------------------------------------------------------------------------------\n";
cout<<" This Utility is designed to test the client connectivity\n";
cout<<" and get the MAC address of the System \n";
cout<<"--------------------------------------------------------------------------------\n";
std::string ip1,ipc1;
cout<<"Enter the Ip Address:\t ";
cin >> ip1;
ip1 = "ping " + ip1;
system(ip1.c_str());
ipc1 = "nbtstat -A" + ip1;
system(ipc1.c_str());
}