ohjelmointikieli From Wikipedia, the free encyclopedia
ALGOL (lyhenne sanoista ALGOrithmic Language[1]) on ohjelmointikieli, joka kehitettiin 1950-luvulla. Kielen kehitystä johti Carnegie Mellon -yliopiston Alan J. Perlis.[2]
ALGOL oli aikoinaan ensimmäinen niin sanottu toisen sukupolven ohjelmointikieli. Vaikka ALGOL ei ollut kaupallisesti yhtä käytetty ohjelmointikieli kuin FORTRAN tai COBOL, se vaikutti paljon niitä enemmän myöhempien ohjelmointikielien, erityisesti Pascalin kehitykseen.
ALGOL-kielestä on olemassa kolme virallista versiota:
Numerot viittaavat versioiden kehittämisvuosiin.[5]
ALGOL 68 sai aikanaan paljon kritiikkiä ja sen kehitys muistetaan riitaisana. Kehitys suuntasi eri tarkoitukseen kuin monet muut tuolloin käytetyt kielet.[6]
procedure Absmax(a) Size:(n, m) Result:(y) Subscripts:(i, k);
value n, m; array a; integer n, m, i, k; real y;
comment The absolute greatest element of the matrix a, of size n by m
is transferred to y, and the subscripts of this element to i and k;
begin integer p, q;
y := 0; i := k := 1;
for p:=1 step 1 until n do
for q:=1 step 1 until m do
if abs(a[p, q]) > y then
begin y := abs(a[p, q]);
i := p; k := q
end'
end Absmax
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.