• 沒有找到結果。

Lab Hours

N/A
N/A
Protected

Academic year: 2022

Share "Lab Hours"

Copied!
8
0
0

加載中.... (立即查看全文)

全文

(1)

Lab Hours

(2)

Extra Labs

(3)

Lab 2-3

修改Lab 2的程式碼,輸出團體⼈人數最多的⼈人數。

Modify your solution to Lab 2 so that the program outputs the max number of group members.

(4)

Lab 2-4

最初,我們假設friendship array的每⼀一個元素都不會重複。

但是真實世界中,有些⼈人就是⼈人緣超好!

現在開放⼤大家隨意填寫⾃自⼰己最要好的朋友 (也就是說可能會 出現重複的數字)。 如何產⽣生可能重複的數字?

修改Lab 2的程式碼,使得程式輸出⼈人緣最好的⼈人。 可能會有

⼀一個以上的⼈人都是⼈人緣最好,該怎麼辦?

(5)

Lab 2-4

Recall that we assume a friendship array with distinct integers.

However, some people are more popular among us.

Now consider that one could write down his/her most

intimate friend (that is, there exist duplicates of numbers).

How to generate random integers which could be duplicate?

Modify your solution to Lab 2 so that the program outputs the most popular person among us. If there are two (or more) of

(6)

Memory & You

根據最後⼀一⾴頁投影片的程式碼,畫出該程式碼在記憶體模

型中的配置。

你需要標⽰示出記憶體中儲存在stack下的區域變數與儲存在 heap中的物件。

對於所有的reference,你需要⽤用箭頭符號連結該變數與物 件。

(7)

Memory & You

Plot the scheme of memory allocation for the program shown in the next page.

You should indicate the local variables in the stack and the objects in the heap.

For all reference variables, you need to draw the arrow from the reference to the object.

(8)

參考文獻

相關文件

 image processing, visualization and interaction modules can be combined to complex image processing networks using a graphical

– Set the corresponding bits in TCCRnX(n=1,2,3 X=A,B) re gisters for mode selection and timer prescaler. – Set OCRnX for “frequency”(OCRnA) or

– “USA” displayed on the top right corner of the clock  recei ving WWVB signal. – Full instructions are given in

Central lab was done for toxicity check yet the sampling time is not within the allowable range as stated in protocol. Central lab data was reviewed prior to

地點:Future Lab 地點:Future Lab

The purpose of this circular memorandum is to invite publicly-funded secondary schools to submit applications for funding under the IT Innovation Lab in Secondary

The purpose of this circular memorandum is to invite secondary schools to submit applications for funding under the “IT Innovation Lab in Secondary Schools” (IT Innovation

a liquid crystal may flow like a liquid, but its molecules may be oriented in a crystal-like way.. Optical