Moving from Code to a Program

If you don’t get to see it working, your program isn’t really a program, so it’s time to compile your program. Writing programs usually happens in a series of steps: You design the program, write it, test it, and refine it. So far, you’ve designed the program (the design of this program couldn’t get much simpler), and you’ve written it.

Your complete program looks like this:

using System;

namespace HelloWorld
{
       /// <summary>
       /// The classic first program in C#
       /// Andy Harris, 10/01
       /// </summary>
       class Hello
       {
              static void Main(string[] args)
              {
                Console.WriteLine("Hello, World!");
                Console.ReadLine();
              } // end main
       } //end class
} // end namespace

Now you must test your program.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.93.12