Console.Read Console.Write Demo

esse quam videri
Revision as of 04:17, 11 September 2007 by Jeff (talk | contribs) (New page: Start Visual Studio Select File/New/Project Image:OOPNewProject.PNG Select Console Application and Name the Project Image:OOPSelectConsoleNameProject.PNG You should see the fol...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Start Visual Studio

Select File/New/Project OOPNewProject.PNG

Select Console Application and Name the Project OOPSelectConsoleNameProject.PNG


You should see the following Code in the project <csharp> using System; using System.Collections.Generic; using System.Text;

namespace ConsoleRead {

   class Program
   {
       static void Main(string[] args)
       {
       }
   }

} </csharp>

Add the following code to make our new project similar to the HelloWorld porject

<csharp> using System; using System.Collections.Generic; using System.Text;

namespace ConsoleRead {

   class Program
   {
       static void Main(string[] args)
       {
           Console.Write("Hello");
       }
   }

} </csharp>

To build the project Select

OOPSelectStartDebug.PNG

or

OOPPressPlay.PNG

You should a black console window flash on the screen and really quicly display the word 'Hello'