zoukankan      html  css  js  c++  java
  • C#使电脑发出嗡鸣声

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Runtime.InteropServices;

    namespace 鸣笛
    {
        class Program
        {
           
            static void Main(string[] args)
            {
                
               BeepOn.Beep(500, 700);
                Console.ReadKey();

            }
           
        }

       public  class  BeepOn
     {
        [DllImport("Kernel32.dll")]
        public static extern bool Beep(int a, int b);
     }

    }

  • 相关阅读:
    v-for基本使用
    SSH
    Git 命令
    bower笔记
    gulp使用例子
    yeoman使用例子
    grunt搭建
    不会误解的名字
    Python 多线程 多进程
    Python 协程
  • 原文地址:https://www.cnblogs.com/secbook/p/2654882.html
Copyright © 2011-2022 走看看