Csharp/CSharp Tutorial/Development/Beep
Версия от 15:31, 26 мая 2010; (обсуждение)
Play a beep with default frequency and duration (800 and 200 respectively)
using System;
using System.Windows.Forms;
using System.Media;
public class MainClass {
public static void Main() {
Console.Beep();
}
}
Play a beep with frequency as 200 and duration as 300
using System;
using System.Windows.Forms;
using System.Media;
public class MainClass {
public static void Main() {
Console.Beep(200, 300);
}
}