Activity Stream
48,167 MEMBERS
6835 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member

    Default Write your first C# program!

    NOTE: THIS TUTORIAL IS KINDA CONTINUED FROM MY PREVIOUS TUT. Click here to view my previous tut.

    As usual we start off with the simplest program - Hello, World!

    Code: 
    public class Hello
    {
         public static void Main(string[] args)
         {
           System.Console.WriteLine("Hello, World! \n");
         }
    }
    System.Console.WriteLine()

    Console is a class that belongs to the System namespace. A namespace is a collection of classes. The System namespace contains the method WriteLine(), which displays the enclosed text on the screen. The Console class has other methods, which are used for various input/output operations. The character (.) is used to access the function, WriteLine(), which is coded in the Console class of the System namespace.

    The preceding line can also be written as Console.WriteLine() if the statement using System is included as the first line of the code.

    The Escape Characters

    To display special characters such as the New line character or the backspace character, you need to use escape characters.

    I have listed the escape characters used in C# :

    \' - Single quotation mark
    \" - Double quotation mark
    \\ - Backslash
    \0 - NULL
    \a - Alert
    \b - Backspace
    \f - Form feed
    \n - New line
    \r - Carriage return
    \t - Horizontal tab
    \v - Vertical tab
    iFlames Reviewed by iFlames on . Write your first C# program! NOTE: THIS TUTORIAL IS KINDA CONTINUED FROM MY PREVIOUS TUT. Click here to view my previous tut. As usual we start off with the simplest program - Hello, World! public class Hello { public static void Main(string args) { System.Console.WriteLine("Hello, World! \n"); } Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    You should try and make people actually write the code themselves. Most will probably copy and paste it in visual studio and feel like there now awsome C# coders.
    "Maybe this world is another planet's Hell"

  4.     
    #3
    Member
    Quote Originally Posted by Loget View Post
    You should try and make people actually write the code themselves. Most will probably copy and paste it in visual studio and feel like there now awsome C# coders.
    i agree
    but they have to learn first
    i m thinking of giving them some programs as "assignment"
    thanks for your suggestion

  5.     
    #4
    Member
    Website's:
    BTfreak.com Adult-BB.org
    Agreed^.

  6.     
    #5
    Respected Member
    You may be disappointed that way. The only ones replying are those that have no interest in learning.

  7.     
    #6
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    you should also explain the differences with Write() , WriteLine(),Read(), ReadLine() aswell.
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  8.     
    #7
    Member
    I am kind of interested to learn C#. What can you doing with C#? (I asked just cuz I wanna hear "your" answers) Can it make uploader/downloader programs?

  9.     
    #8
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    You can make pretty much any desktop application.

    such as Rapidshare elacher
    Download er
    Scanner
    Searchers
    Botnets
    video Players
    media Players
    Database Storage
    Http Web Server

    The list is endless
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  10.     
    #9
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    you are limited only by your imagination. You can be the best coder in the world, but without imagination, you cannot put your skill to use.

  11.     
    #10
    Member
    Quote Originally Posted by litewarez View Post
    You can make pretty much any desktop application.

    such as Rapidshare elacher
    Download er
    Scanner
    Searchers
    Botnets
    video Players
    media Players
    Database Storage
    Http Web Server

    The list is endless
    Quote Originally Posted by jayfella View Post
    you are limited only by your imagination. You can be the best coder in the world, but without imagination, you cannot put your skill to use.
    both my bitches are correct

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Write For Us
    By Kw3rLn in forum Webmaster Discussion
    Replies: 0
    Last Post: 12th May 2012, 04:55 PM
  2. anyone can write this c++ code.
    By iamuser_2007 in forum Web Development Area
    Replies: 3
    Last Post: 21st May 2011, 03:14 PM
  3. Replies: 0
    Last Post: 9th Feb 2011, 04:29 PM
  4. Need some invoice program source code/or program only
    By Nikolasr in forum Webmaster Discussion
    Replies: 2
    Last Post: 1st Feb 2010, 10:55 AM
  5. how do i write?
    By lig}{tning in forum vBulletin
    Replies: 10
    Last Post: 18th Aug 2009, 08:45 AM

Tags for this Thread

BE SOCIAL