ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
Tömb - Wikipédia

Tömb

A Wikipédiából, a szabad enciklopédiából.

A számítógéptudományban a tömb (array) egy olyan adatszerkezet, amely olyan elemek csoportja, melyeknek egy nevük van és indexelve vannak. A legtöbb programozási nyelvben minden egyes elemnek azonos aaaaaaaaadattípusa van és a tömb folytonosan helyezkedik el a számítógép memóriájában.

(…a szócikk további része lefordítandó…)

[szerkesztés] Tömbrendszer kereszthivatkozási lista

Programozási nyelv Base index Bound Check Dimenzió Dynamic
Ada n checked n init1
APL7 0 or 1 checked n init1
assembly language 0 unchecked 1 no
BASIC 1 unchecked 1 init1
C 0 unchecked n2 heap3,4
C++5 0 unchecked n2 heap3
C# 0 checked n2 heap3,9
Common Lisp 0 checked n yes
D 0 varies11 n yes
FreeBASIC n checked n yes
Fortran n varies12 n heap3
IDL 0 checked n yes
Java5 0 checked 12 heap3
Lua 1 checked 12 yes
MATLAB 1 checked n8 yes
Oberon-1 0 checked n no
Oberon-2 0 checked n yes
Pascal n checked n varies10
PERL n checked 12 yes
PL/I n checked
Python 0 checked 12 yes
Ruby 0 checked 12 yes
Scheme 0 checked 12 no
Smalltalk5 1 checked 12 yes6
Visual BASIC n checked n yes
Windows PowerShell 0 checked n2 heap
  1. Size can be chosen on initialization/declaration after which it is fixed.
  2. Allows arrays of arrays which can be used to emulate multi-dimensional arrays.
  3. Size can only be chosen when memory is allocated on the heap.
  4. C99 allows for variable size arrays – however there is almost no compiler available to support this new feature.
  5. This list is strictly comparing language features. In every language (even assembler) it is possible to provide improved array handling via add on libraries. This language has improved array handling as part of its standard library.
  6. The class Array is fixed-size, but OrderedCollection is dynamic.
  7. The indexing base can be 0 or 1, but is set for a whole "workspace".
  8. At least 2 dimensions (scalar numbers are 1×1 arrays, vectors are 1×n or n×1 arrays).
  9. Allows creation of fixed-size arrays in "unsafe" code, allowing for enhanced interoperability with other languages
  10. Varies by implementation. Newer implementations (FreePascal and Delphi) permit heap-based dynamic arrays.
  11. Behaviour can be tuned using compiler switches. As in DMD 1.0 bounds are checked in debug mode and unchecked in release mode for efficiency reasons.
  12. Almost all Fortran implementations offer bounds checking options via compiler switches. However by default, bounds checking is usually turned off for efficiency reasons.


[szerkesztés] Kölső hivatkozások


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -