C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet62/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   58   59   60   61   62   63   64   65   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

Sample.cs

,

Test.cs

, or even 

X.cs

.

www.freepdf-books.com




20

 

P a r t   I :  



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

By convention, C# programs use the 



.cs

 file extension, and this is a convention that you 

should follow. Also, many programmers call a file by the name of the principal class defined 

within the file. This is why the filename 



Example.cs

 was chosen. Since the names of C# 

programs are arbitrary, names won’t be specified for most of the sample programs in this 

book. Just use names of your own choosing.

The program begins with the following lines:

/*

   This is a simple C# program.



   Call this program Example.cs.

*/

This is a 



comment.

 Like most other programming languages, C# lets you enter a remark into 

a program’s source file. The contents of a comment are ignored by the compiler. Instead, a 

comment describes or explains the operation of the program to anyone who is reading its 

source code. In this case, the comment describes the program and reminds you to call the 

source file 



Example.cs

. Of course, in real applications, comments generally explain how 

some part of the program works or what a specific feature does.

C# supports three styles of comments. The one shown at the top of the program is called 

a

multiline comment.

 This type of comment must begin with 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   58   59   60   61   62   63   64   65   ...   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