Thread: basic c# tut.

Results 1 to 7 of 7
  1. #1 basic c# tut. 
    Botnet admin

    HaVoK0321's Avatar
    Join Date
    Jan 2009
    Posts
    551
    Thanks given
    51
    Thanks received
    23
    Rep Power
    247
    O.k Lets start with the basics of C#
    C# is a programming language made by Microsoft designed for the .NET Framework
    The influences of this language are C++ and Java
    The compiler for this language is either Microsoft C# express edition or i have Microsoft visual studio 2008 cracked if you need it
    so on with the tutorial first as i always do a Hello World Application
    ---------------------------------------------------------
    // this is a comment just like in C++
    ---------------------------------------------------------
    name space Some C#// The Name of your first program
    {// begin program
    using System;// using your system
    class Example//the class is example
    {// begins main void
    static void Main()
    {
    Console.WriteLine("Hello world!");// tells the compiler to write the words on the line since this is console application
    }// closes The writing
    }// closes the main void
    }// closes the program
    ------------------------------------------------------------
    here is the code without tags

    Code:
    namespace Some C# {
      using System;
      class Example {
        static void Main ( ) {
          Console.WriteLine ("Hello world!");
        }
      }
    }
    Now something a little more advanced (not much though)


    using System;
    namespace ConsoleApp
    {
    // class Program is the €œobject€ containing our code
    public class Program
    {
    // This is where the main program starts
    static void Main(string[] args)
    {

    // prompt user to enter a name
    Console.WriteLine(€œEnter The name, please:€);
    // now read the name entered
    string sName = Console.ReadLine();
    // Repeats Back The Name That Was Previously entered
    Console.WriteLine(€œHello, €œ + sName);
    // wait for you
    Console.WriteLine(€œPress Enter to exit GameOver...€);
    Console.Read();
    // Main ends here
    }
    } // Program ends here
    } // name space ends

    Now Again Code with out tags
    Code:
    using namespaces.you.need.here;
    
    namespace nameofyourapplication
    {
    	class classnamehere
    	{
    		Static String somevar = "Hello World";
    
    		static void Main(string[] args)
    		{
    			Console.WriteLine(somevar);
    		}
    	}
    }
    There you go guys another basic tutorial.
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    What on earth is this...

    The first part of your tutorial is completely wrong a C Sharp class should look like this...

    Code:
    using namespaces.you.need.here;
    
    namespace nameofyourapplication
    {
    	class classnamehere
    	{
    		Static String somevar = "Hello World";
    
    		static void Main(string[] args)
    		{
    			Console.WriteLine(somevar);
    		}
    	}
    }
    You fail at every aspect of writing tutorials let alone programming... Fail tutorial...
    Reply With Quote  
     

  3. #3  
    Botnet admin

    HaVoK0321's Avatar
    Join Date
    Jan 2009
    Posts
    551
    Thanks given
    51
    Thanks received
    23
    Rep Power
    247
    Hiya troll you can tell that to a very special community that i make programs for.
    Reply With Quote  
     

  4. #4  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Just correct your tutorial as you don't want to misinform users lol...
    Reply With Quote  
     

  5. #5  
    Botnet admin

    HaVoK0321's Avatar
    Join Date
    Jan 2009
    Posts
    551
    Thanks given
    51
    Thanks received
    23
    Rep Power
    247
    lol there.
    Reply With Quote  
     

  6. #6  
    Donator

    Scim's Avatar
    Join Date
    Apr 2007
    Age
    31
    Posts
    741
    Thanks given
    62
    Thanks received
    16
    Rep Power
    263
    This is a horrible tutorial. Sorry :\
    Reply With Quote  
     

  7. #7  
    Mops the streets
    Streetwave's Avatar
    Join Date
    Mar 2009
    Age
    29
    Posts
    3,445
    Thanks given
    481
    Thanks received
    1,114
    Rep Power
    5000
    Might use paragraphs and colors and bbcodes.

    Spoiler for Love:







    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •