• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Htdp05
 

Htdp05

on

  • 320 views

 

Statistics

Views

Total Views
320
Views on SlideShare
320
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \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 Htdp05 Presentation Transcript

  • 5(Symbolic Information)
  • Scheme (symbols) (strings) ((keyboard)characters) (images)
  • (Symbols) .the a chocolate cat! two^3 and%so%on? , .
  • Symbolssymbol=?
  • example
  • "the dog" "isnt" "made of" "two^3" "and so on?"string=?
  • ex 5.1.2
  • ex 5.1.3
  • 6 1struct Point{ int x; int y;}(make-posn 3 4)(posn-x (make-posn 7 0))(posn-y (make-posn 7 0))
  • 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)
  • distance examc = sqrt(a^2 + b^2)sqr, sqrt(define (distance-to-0 a-posn) ...
  • ex 6.2.1
  • ex 6.2.2
  • 6.3(define-struct posn (x y))make-posn : constructorposn-x : selectorposn-y : selector
  • structure(define-struct entry (name zip phone))(make-entry PeterLee 15270 606-7771)(entry-name (make-entry Peter 15270 606))= Peter
  • 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)
  • 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)
  • rock star ex 20,000 ., ,
  • rock star ex 20,000 ., ,
  • 6.4DrRacket . . -> ?
  • 6.5 (Compound) -p81
  • 7numbers, booleans, symbols, structures 2 ?
  • 71 .number?boolean?symbol?struct?
  • Structuresposn?star?airplane?
  • distance-to-0 ex(make-posn 6 6)(make-posn 1 2)1, 2, 3pixel-2 number, posn 2
  • distance-to-0 ex, ,
  • shape example(make-square p s) ; p->posn, s->number(make-circle p s) ; p->posn, s->number
  • shape example,
  • ex 71.2 .
  • 7.2 (Mixed) ,
  • 7.3 .
  • 7.3 .
  • 7.5(error checked-area-of-disk "number expected")
  • errorexecption
  • 8 => Vocabulary + Grammar => (Syntax)(Semantics) .
  • 8.1 Scheme
  • 8.2 Scheme