Hello world!

Look For Hello World @ Amazon.com

Hello, this is my firstborn article instructing how to program in C sharp. This article will show you how to develop your firstborn program in C#. To begin plainly open up notepad or any other text editor. You may likewise use a program such as Visual Studio 2008 to give rise to your program. In the next tutorials I make I will be only writing the code for the specific thing I am writing the tutorial for, and not the whole program. It is your obligation to fill in the necessary code in order to make the program run.

The basi thing we have to do is formulate a class, which we will call Hello.

class Hello

{

}

Now we have to put the Main method in the Hello class (Don’t forget the brackets!)

class Hello

{

public static void Main()

{

}

}

Now lets go in front and put in the code that will write “Hello World” in the console. Make sure to include all the necessary little details like quotation marks and semi-colons. Any little fault will make it so your program will not run.

class Hello

{

public static void Main()

{

System.Console.WriteLine(“Hello World!”);

//Putting two slashes before a line is known as commenting, and the compiler will ignore these

// lines. It is always good to comment your code to make sure other’s reading it will comprehend you.

}

}

Now save the file as Hello.cs (make sure the extension is .cs) and use your favored c# compiler (A quick Google search will find one) in order to fabricate an application that you may run. Once you have produced the application go in front and run it and see what your program does!


Hello World

Hello World Photo

Hello World

Hello World Image

Hello World

Hello World Image

Hello World

Hello World Photo

Hello World

Hello World Image

Hello World

Hello World Picture

This entry was posted in Uncategorized and tagged , , , , , , . Bookmark the permalink.

One Response to Hello world!

  1. Mr WordPress says:

    Hi, this is a comment.
    To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.

Leave a Reply