ideas | discover | explore

Saturday, July 14, 2012

Visual Studio 11 Developer Preview-SearchEverywhere.mp4

Learn how search enabled in various locations in Visual Studio 11 Developer Preview helps improve productivity.
Enjoy!

Microsoft 101: Visual Studio (abridged)

Spanning the history of Microsoft, this documentary covers the origins and evolution of Microsoft's developer tools and its seminal software development product, Visual Studio.
Enjoy!

Jerry Nixon @work: Premier Episode of Microsoft DevRadio on MSDN: Bui...

Jerry Nixon @work: Premier Episode of Microsoft DevRadio on MSDN: Bui...: Nisha and I kicked off the maiden episode of Microsoft DevRadio on MSDN. It you are like me (meaning you love to hear me talk) then this is ...

Windows Phone - Week 4 Development Showcase

Windows Phone development in 30 Days!
Enjoy!

Wednesday, July 4, 2012

The BoxingBots Infomercial Funny!

Please be warned, this stuff is very funny!

Edge Show 27: Windows Server 2012 Release Candidate hits the streets

Edge Show #27: Windows Server 2012 Release Candidate hits the streets

ThisWeekInChannel9: Microsoft Surface, Windows Phone 8, Azure, Imagine Cup and Pi!

This Week On Channel 9

Ping Show #145: Surface, Windows Phone 8, SmartGlass SDK, Bing Images

C# 17 - Bubble Sort


Implementing a sort using insertion sort algorithm.

1. Create a new console project.
2. Edit the Program.cs inside static void Main(string[] args) file as shown below.

static void Main(string[] args)
{
     int[] array = { 2, 3, 1, 9, 4, 7, 5, 8, 6, 10, 20, 12, 18, 11, 15, 16 };
          Console.Write("Before sort: ");
          PrintArray(array);
          Console.WriteLine();
          BubbleSort(array);
          Console.Write("After sort: ");
          PrintArray(array);
          Console.ReadLine();
}

private static void BubbleSort(int[] array)
{
     int temp;
     for (int i = array.Length; i >= 0 ; i--)
     {                
          for (int x = 0; x < array.Length - 1; x++)
          {
               if (array[x] > array[x + 1])
               {
                    temp = array[x];
                    array[x] = array[x + 1];
                    array[x + 1] = temp;
                }
           }
       }
}

private static void PrintArray(int[] array)
{
     for (int i = 0; i < array.Length; i++)
     {
          Console.Write(array[i] + " ");
     }