Htdp05

354 views
286 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
354
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • 상수\n
  • 두개의 기호가 같을 경우 true\n
  • 입출력은 symbol -> symbol\n입력에 문자열등 다른 타입을 넣으면 런타임에러.\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • 이후 계속\n
  • drop source, drop target, target parent ...\n\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • shape -> node, relationship\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Htdp05

    1. 1. 5(Symbolic Information)
    2. 2. Scheme (symbols) (strings) ((keyboard)characters) (images)
    3. 3. (Symbols) .the a chocolate cat! two^3 and%so%on? , .
    4. 4. Symbolssymbol=?
    5. 5. example
    6. 6. "the dog" "isnt" "made of" "two^3" "and so on?"string=?
    7. 7. ex 5.1.2
    8. 8. ex 5.1.3
    9. 9. 6 1struct Point{ int x; int y;}(make-posn 3 4)(posn-x (make-posn 7 0))(posn-y (make-posn 7 0))
    10. 10. structure(define a-posn (make-posn 7 0))(posn-x a-posn)(posn-y a-posn)(* (posn-x a-posn) 7)(+ (posn-y a-posn) 13)
    11. 11. distance examc = sqrt(a^2 + b^2)sqr, sqrt(define (distance-to-0 a-posn) ...
    12. 12. ex 6.2.1
    13. 13. ex 6.2.2
    14. 14. 6.3(define-struct posn (x y))make-posn : constructorposn-x : selectorposn-y : selector
    15. 15. structure(define-struct entry (name zip phone))(make-entry PeterLee 15270 606-7771)(entry-name (make-entry Peter 15270 606))= Peter
    16. 16. rock star example(define-struct star (last first instrument sales))make-star, star-last, star-first, star-instrument,star-sales(make-star lena Park ukelele 19004)(star-first E)
    17. 17. rock star example(define-struct star (last first instrument sales))make-star, star-last, star-first, star-instrument,star-sales(make-star lena Park ukelele 19004)(star-first E)
    18. 18. rock star ex 20,000 ., ,
    19. 19. rock star ex 20,000 ., ,
    20. 20. 6.4DrRacket . . -> ?
    21. 21. 6.5 (Compound) -p81
    22. 22. 7numbers, booleans, symbols, structures 2 ?
    23. 23. 71 .number?boolean?symbol?struct?
    24. 24. Structuresposn?star?airplane?
    25. 25. distance-to-0 ex(make-posn 6 6)(make-posn 1 2)1, 2, 3pixel-2 number, posn 2
    26. 26. distance-to-0 ex, ,
    27. 27. shape example(make-square p s) ; p->posn, s->number(make-circle p s) ; p->posn, s->number
    28. 28. shape example,
    29. 29. ex 71.2 .
    30. 30. 7.2 (Mixed) ,
    31. 31. 7.3 .
    32. 32. 7.3 .
    33. 33. 7.5(error checked-area-of-disk "number expected")
    34. 34. errorexecption
    35. 35. 8 => Vocabulary + Grammar => (Syntax)(Semantics) .
    36. 36. 8.1 Scheme
    37. 37. 8.2 Scheme

    ×