Please to interact with this component.

{}

Ohjelmointi 1, syksy 2020, luento 09

9. luento: ma 5.10.2020 klo 12:15-14:00: Aliohjelmien kutsuminen, String, StringBuilder

Muu sisältö: ehtolauseet, luokan käyttäminen sekä olioviitteet

Kertausta yms

Demot

# GLO_DemoN2

Funktiot ja järjestäminen

Järjestä kolme pahvilappua järjestykseen.

Kurssin esimerkkiohjelminen hakeminen

  • siirry hakemistoon johon haluat esimerkit

    git clone https://gitlab.jyu.fi/tie/ohj1/2020s/esimerkit.git .
    git pull

Aliohjelminen kutsuminen ja APIin lukeminen

Kysymyksiä:


# kutsuja
        // docs.microsoft.com/en-us/dotnet/api/system.console.writeline?view=netcore-3.1#System_Console_WriteLine_System_String_
        // Namespace:  System
        // Console.WriteLine Method (String)
        // public static void WriteLine(string value)

StringBuilder

# sb

Yhdistetyt ehdot

Yhdistettyjen ehtojen totuustaulu

p q p && q p || q p ^ q !p
0 0 0 0 0 1
0 1 0 1 1 1
1 0 0 1 1 0
1 1 1 1 0 0
# osuuko

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