C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet52/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   48   49   50   51   52   53   54   55   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

A First Simple Program

It is now time to look at an actual C# program. We will begin by compiling and running the 

short program shown here:

/*

   This is a simple C# program.



   Call this program Example.cs.

*/

using System;



class Example {

www.freepdf-books.com




14

 

P a r t   I :  



T h e   C #   L a n g u a g e

  // A C# program begins with a call to Main().

  static void Main() {

    Console.WriteLine("A simple C# program.");

  }

}

The primary development environment for C# is Microsoft’s Visual Studio. To compile 



all of the programs in this book, including those that use the new C# 3.0 features, you will 

need to use a version of Visual Studio 2008 (or later) that supports C#. A good choice for 

learning C# 3.0 is Visual C# 2008 Express Edition because (at the time of this writing) it is 

available free of charge from Microsoft. Visual C# 2008 Express Edition contains a full-

featured compiler that supports all of C# 3.0 and is, therefore, able to compile all of the code 

in this book. It also includes Visual Studio, which is Microsoft’s integrated programming 

environment (IDE). Although the Express Edition does not supply all of the tools that a 

commercial developer will want, it is perfect for learning C#. At the time of this writing, 

Visual C# 2008 Express Edition can be downloaded from 


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   48   49   50   51   52   53   54   55   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish