Help shape GoConqr. What should we add next?

Mind map

Unit 3: Primitive Values

Alex Bernini English

Unit 3: Primitive Values

Map content

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

Images and files in the map

  • Unit 3: Primitive Values

Information

Description
Mind Map on Unit 3: Primitive Values, created by Alex Bernini on 25/05/2019.
Created by
Alex Bernini
Views
1
Rating

Feedback

What is it about?

What should we add next?