Monday, October 31, 2011

What is Console?


Console Programming

What is console in .NET? Console is like a command line interface its look like the DOS operating system
Here we are going to take a look how we can do coding for console applications.
Step 1:
Go to the visual studio and click on file->new->project->
On left side select the language you want and the right side select the console application.
At the bottom of the window there are three boxes-Name, Location and Solution Name, The very first showing the name of your project and location showing where project will save, you can change the location by browsing it.

Console
Step 2:
You can see the coding that has already done.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
           {
Console.WriteLine("Hii My First Pro");
           }
    }
}

“ Console.WriteLine("Hii My First Pro ");” Only this line is added
Console.WrightLine is use print the line on console.
Now execute the program by pressing F5
Now You can see the console written “Hii My First Pro” but it disaapear
immediately so execute by pressing ctrl+F5 or start without debugging it will stay till you press any key.

This is your first console application program.

2 comments:

  1. Thanks for providing such informative blogger which has the complete knowledge of c# so I support that it is one of the best c# tutorial which is helpful for beginners specially and also for expert.

    ReplyDelete
  2. Casino-Area, San Francisco - Mapyro
    View and compare 고양 출장안마 the historical 계룡 출장마사지 layout of Casino-Area 광주광역 출장안마 in San Francisco, CA. Address: 경상남도 출장마사지 777 Highway 50, south of El 구미 출장샵 Dorado.

    ReplyDelete