zoukankan      html  css  js  c++  java
  • 自制无线共享工具C++源代码

    // wire.cpp : 定义控制台应用程序的入口点。
    //
    
    #include <iostream>
    #include <string.h>
    using namespace std;
    int main()
    {
    for (;;)
    {
    cout << "1开启无线,2重新设置无线,3关闭无线:";
    int n;
    cin >> n;
    if (n == 1)
    system("netsh wlan start hostednetwork");
    else if (n == 2)
    {
    char destination[100] = "netsh wlan set hostednetwork mode=allow ssid= ";
    char ssid[100], key[100], keyh[100] = " key=", *k = " ";
    cout << "请输入无线名字:";
    cin >> ssid;
    cout << endl;
    cout << "请输入无线密码:";
    cin >> key;
    cout << endl;
    strcat(destination, ssid);
    strcat(destination, keyh);
    strcat(destination, key);
    system(destination);
    system("netsh wlan start hostednetwork");
    }
    else
    system("netsh wlan stop hostednetwork");
    }
    return 0;
    }
  • 相关阅读:
    个人作业——软件工程实践总结作业
    BETA答辩总结
    beta冲刺7
    beta冲刺6
    beta冲刺5
    beta冲刺4
    beta冲刺3
    华为云
    beta冲刺2
    beta冲刺1
  • 原文地址:https://www.cnblogs.com/djzny/p/4882953.html
Copyright © 2011-2022 走看看