Gestalte GoConqr mit. Was sollen wir als Nächstes hinzufügen?

Mindmap

Unit 3: Primitive Values

Alex Bernini Englisch

Unit 3: Primitive Values

Inhalt der Mindmap

Unit 3: Primitive Values

  1. C/C++: Only Named Numbers

    • Booleans
      • 0 = false, else true
        • Define constants - TRUE = 1, FALSE = 0
    • Characters
      • 'char' type
    • String conversions
      • printf
      • scanf
        • Parse strings to represent primitives
    • Symbolic values
      • typedef enum {DETACHED, SEMIDETACHED, TERRACE} HouseCategory;
  2. Java

    • Symbolic values
      • enum HouseCategory { DETACHED, SEMIDETACHED, TERRACE }
      • enum = we know all the values at runtime
  3. Haskell: Typed Expressions

    • Booleans
      • No usual if-then-else
        • Use '? :' operator
          • myfun n = 2 * (if n> 0 then (factorial n) else 0) + 1
    • String conversions
      • show
        • Convert value to string
      • reads
        • Parse string to any value of a chosen type
    • Symbolic values
      • 'data' enumerated type
        • data HouseCategory = DETACHED | SEMIDETACHED | TERRACED

Bilder und Dateien der Mindmap

  • Unit 3: Primitive Values

Informationen

Beschreibung
Mindmap am Unit 3: Primitive Values, erstellt von Alex Bernini am 25/05/2019.
Erstellt von
Alex Bernini
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?