Friday, January 28, 2011

Beep() Function in Console Class


// This example demonstrates the Console.Beep() method.


using System;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            string name = Console.ReadLine();
            bool b = true;
            while(b)
            if (name != "Name")
            {
                Console.WriteLine("Error");
                Console.Beep(500, 1000);

            }
        }
    }
}

No comments:

Post a Comment

Your comment is pending for approval

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...