Please to interact with this component.

{}

Ohjelmointi 1, syksy 2020, luento 08

8. luento: ti 29.09.2020 klo 14:15-16:00: Ehtolauseet, String

# ae_keskiarvo

Ehtolauseet

# Plugin1
# k13

Kuva 13: if-rakenne vuokaaviona.

if (ehto) 
{
  lause1;
  lause2;
  ...
  lauseN;
}

Kysymyksiä:

# helloeka

Merkkijonot

Aliohjelmakutsuihin EI tule tyyppejä (ellei samalla luoda new:llä uusia olioita, mutta siitä myöhemmin). Olisi 'väärin' kirjoittaa seuraavasti.

y = double Math.Sin(double x); // TÄMÄ ON VÄÄRIN!!! Kutsuun ei tule tyyppejä!

Alla oleva on oikein (olettaen että x on hyvin määritelty).

y = Math.Sin(x);
# lumiukko1
# ae_tolower

These are the current permissions for this document; please modify if needed. You can always modify these permissions from the manage page.