概述
2019独角兽企业重金招聘Python工程师标准>>>
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#使电脑发出嗡鸣声所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复