Lecture 8 - York Universityjackie/teaching/lectures/2017... · 2019. 8. 30. · IT Lab1marks_-Log...

Post on 16-Mar-2021

0 views 0 download

Transcript of Lecture 8 - York Universityjackie/teaching/lectures/2017... · 2019. 8. 30. · IT Lab1marks_-Log...

Lecture 8

Wednesdayat

. 4

ITLab1marks_-

Log in to red.eecs

.youku.ca

- feedback 3311 label

- Issues ? Thursday 13:30 ~ Hoo

Lab test # 1

Wednesday Oct.

11

treeteletext.:of¥E÷Et:n

-0dusters

,expanded

compactyen $@etattedw£

o@a ootBON

diagramsdientsuppker

fly draw .io

c¥¥⇐FEED¥I¥ta#ng⇒eE¥E¥F#EBB

a as Eg

i¥:*:##C 2M¥ §

a.tt#ithDa1d:¥y]death ref opy.

#gM¥_I@

c¥f¥tEya. ÷ a onF#A@n,sat E#dDa

Reference copy : b : = a

r.

b

Shallow Copy : C : = a. twin

teen

deep Gpy : d ÷ a. deep . twin

d→#

$,SZ : STRING

create d. make.ha

s| :=

' ' York "

tagC "

'corky

SZ .

.=

" York "

create d. make .hn.

#

forty$ = SZ Ciyakj

areanditton

Tithdraw ( a : INTEGER )

req±e_<old

.

balance .today

do⇐e.IE#HItwaob@aD

insert-

at ( - )

requiresddiinp i=

Tmpdo ddtmp . ton is Tmp. twin

old. Twp

. deep . twin ii Tmp . deep.am

ensure =ootddFIDEend - II

tmp.dq7tuf)

ddaco #× ×

100 100ensure

- across old accounts

EMIT

€p4Do%

USEacross accounts .

twin

aaes.gg#wa-MkEotEi.itfFEofei'

x x

100 100

ensue across acounts.de/7Eua_.