我是靠谱客的博主 魁梧皮带,最近开发中收集的这篇文章主要介绍C#使电脑发出嗡鸣声,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

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);
 }

}


原文链接: http://blog.csdn.net/mypc2010/article/details/7983971

转载于:https://my.oschina.net/changpinghu/blog/92534

最后

以上就是魁梧皮带为你收集整理的C#使电脑发出嗡鸣声的全部内容,希望文章能够帮你解决C#使电脑发出嗡鸣声所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(73)

评论列表共有 0 条评论

立即
投稿
返回
顶部