This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet175/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   171   172   173   174   175   176   177   178   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Note

C# is a case-sensitive programming language. Therefore, “Main” is not the same as “main,” and

“Readline” is not the same as “ReadLine.” Given this, be aware that all C# keywords are lowercase (

public


,

lock


,

class


,

global


, and so on), while namespaces, types, and member names begin (by convention) with an

initial capital letter and have capitalized the first letter of any embedded words (e.g.,

Console.WriteLine

,

System.Windows.Forms.MessageBox



,

System.Data.SqlClient

, and so on). As a rule of thumb, whenever

you receive a compiler error regarding “undefined symbols,” be sure to check your spelling!

In addition to the static keyword, this Main() method has a single parameter, which happens

to be an array of strings (string[] args). Although you are not currently bothering to process this

array, this parameter may contain any number of incoming command-line arguments (you’ll see

how to access them momentarily). Finally, this Main() method has been set up with a void return

value, meaning we do not explicitly define a return value using the return keyword before exiting

the method scope.

The logic of Program is within Main() itself. Here, you make use of the Console class, which is

defined within the System namespace. Among its set of members is the static WriteLine() which, as

you might assume, pumps a text string and carriage return to the standard output. You also make a

call to Console.ReadLine() to ensure the command prompt launched by the Visual Studio 2008 IDE

remains visible during a debugging session until you press the Enter key.

C H A P T E R   3  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   171   172   173   174   175   176   177   178   ...   1830




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