C# 0 The Complete Reference


Stack . It implements the  ICollection



Download 4,07 Mb.
Pdf ko'rish
bet954/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   950   951   952   953   954   955   956   957   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

    Bu sahifa navigatsiya:
  • Stack
Stack

. It implements the 



ICollection

,

IEnumerable

, and 

ICloneable

 interfaces. 



Stack

 is a dynamic collection that grows as 

needed to accommodate the elements it must store. Each time the capacity must be 

increased, the capacity is doubled.



Stack

defines the following constructors:

public Stack( )

public Stack(int 



capacity

)

public Stack(ICollection 



c

)

The first form creates an empty stack. The second form creates an empty stack with the initial 



capacity specified by 

capacity.

 The third form creates a stack that contains the elements of the 

collection specified by 

c

 and an initial capacity equal to the number of elements



.

In addition to the methods defined by the interfaces that it implements, 



Stack

 defines 

the methods shown in Table 24-7. In general, here is how you use 

Stack

. To put an object on 

the top of the stack, call 

Push( )

. To remove and return the top element, call 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   950   951   952   953   954   955   956   957   ...   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