LET'S LEARN C-sharp 5.0 PROGRAMMING LANGUAGE ( class 1)

We know that visual c# , commonly known as C#, intermediate programming language use to create executable programs. It's an object-oriented programming language , which is combine of power and efficiency of C++ , simplicity and object-oriented approach of JAVA , and creativeness of VISUAL BASIC. Similar to java , C# does not use the multiple inheritance and pointers but provides the garbage collection at run time.
                                  Now , let's start the C# by discussing the features of C# .......

 flexible : Refers to the capability of C# programs of getting executed on the local system , any remote system or on the web.

 powerful : Refers to the ability of C# to create any type of application , such as word processor , spreadsheet , and even compilers for some language .
easy to use : Refers to the use of simpler code statement instead of using complex data types and operators , such as pointers.

 visually oriented : Allow you to use the .NET code libraries for developing complicated and attractive interfaces.

let's creating a simple C# 5.0 console application

let's learn to create a C# 5.0 console application named hello-world. To create the hello world application perform the following steps:
before following these steps you need to download the visual studio 2012. 

1 >> open visual studio 2012 IDE by selecting  start ==> All programs ==> Microsoft visual studio 2012 ==> visual studio 2012

2 >> Select file ==> New project on the menu bar. The new project dialog box opens.

3 >> select installed ==> templates ==> visual C# ==> windows option from the left pane and then select console application template from the middle pane. Enter the name , for instance hello world in the name text box. Enter the location for the application in the location combo box using the browse button , as shown in the figure. 

4 >> Click the OK button to create the new console application in visual C#, the visual studio 2012 IDE opens the console application , as shown in the figure.

5 >> add code to creating the application :

showing application hello world :

using System;
using System.Collection.Generic;
using System. Linq;
using system.text;
using system.threading.tasks;
namespace helloworld
{
   class program
      {
          puvblic static void Main(string[] args)
           {
               Console.WriteLine("hello world");
               console.RedKey();
            }
       }
  }
 
shows a stander-ed C# application that prints the literal string hello world  to the console output window.
In this application , you can see that the entire program is wrapped in the namespace helloworld statement. this namespace contain a class name program , which turn contains a method called main() . The main() method must be declared as static , as it does not require any object foe calling .
run the application by pressing F5 key . the output the application is shown in figure .


VIDEO LINK : HOW TO USE VISUAL STUDIO:

watch here

CLASS 2 WILL BE CONTINUE TOMORROW TILL THEN SEEYAAAaaaa....!!!!!!

1 comments: