#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
void main()
{
string str,ch="net send ",ip,ch1;
int who;
long begin = GetTickCount();
system("title ★★★厦门理工学院集美校区专用断网局域聊天工具★★★");
cout<<"正在启动消息服务...."<<endl;
system("sc config messenger start= demand");
system("color 0b");
cout<<"正在为您打开消息服务...."<<endl;
system("net start messenger");
long gap = GetTickCount() - begin;
cout<<"打开服务耗时"<<gap<<"毫秒"<<endl;
cout<<"----------------------------"<<endl<<"以下是你的好友列表"<<endl<<"----------------------------"<<endl<<"*群发"<<'\t'<<"请按0*"<<endl<<"*维元仔"<<'\t'<<"请按1*"<<endl<<"*JJ"<<'\t'<<"请按2*"<<endl<<"*小黄"<<'\t'<<"请按3*"<<endl<<"*双斌"<<'\t'<<"请按4*"<<endl<<"*道长"<<'\t'<<"请按5*"<<endl<<"*小汉"<<'\t'<<"请按6*"<<endl<<"*越节"<<'\t'<<"请按7*"<<endl<<"*志超"<<'\t'<<"请按8*"<<endl<<"*烽烈"<<'\t'<<"请按9*"<<endl<<"----------------------------"<<endl;
cout<<"请输入你的好友编号:";
cin>>who;
cout<<"----------------------------"<<endl;
switch(who){
case 0:ip="* ",ch=ch+ip;break;
case 1:ip="192.168.1.221 ",ch=ch+ip;break;
case 2:ip="192.168.1.220 ",ch=ch+ip;break;
case 3:ip="192.168.1.100 ",ch=ch+ip;break;
case 8:ip="192.168.1.175 ",ch=ch+ip;break;
case 4:ip="192.168.1.221 ",ch=ch+ip;break;
case 5:ip="192.168.1.221 ",ch=ch+ip;break;
case 6:ip="192.168.1.221 ",ch=ch+ip;break;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载