Results 1 to 10 of 11
-
28th Jun 2010, 05:59 PM #1OPMember
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"); } }
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 tabiFlames 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
-
28th Jun 2010, 07:03 PM #2Respected Member
-
28th Jun 2010, 07:04 PM #3OPMember
-
28th Jun 2010, 07:05 PM #4MemberWebsite's:
BTfreak.com Adult-BB.orgAgreed^.
-
28th Jun 2010, 09:35 PM #5Respected Member
You may be disappointed that way. The only ones replying are those that have no interest in learning.
-
28th Jun 2010, 09:48 PM #6MemberWebsite's:
litewarez.net litewarez.com triniwarez.comyou 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
-
28th Jun 2010, 10:16 PM #7Member
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?
-
28th Jun 2010, 10:27 PM #8MemberWebsite's:
litewarez.net litewarez.com triniwarez.comYou 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 endlessJoin 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
-
29th Jun 2010, 12:02 AM #9ლ(ಠ益ಠლ)Website's:
extremecoderz.comyou 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.
-
29th Jun 2010, 03:30 PM #10
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Write For Us
By Kw3rLn in forum Webmaster DiscussionReplies: 0Last Post: 12th May 2012, 04:55 PM -
anyone can write this c++ code.
By iamuser_2007 in forum Web Development AreaReplies: 3Last Post: 21st May 2011, 03:14 PM -
Not Selected for The Program (MEPI- Student Leaders Program)!!
By DoctorX in forum General DiscussionReplies: 0Last Post: 9th Feb 2011, 04:29 PM -
Need some invoice program source code/or program only
By Nikolasr in forum Webmaster DiscussionReplies: 2Last Post: 1st Feb 2010, 10:55 AM -
how do i write?
By lig}{tning in forum vBulletinReplies: 10Last Post: 18th Aug 2009, 08:45 AM
themaPoster - post to forums and...
Version 5.35 released. Open older version (or...