24小时热门版块排行榜    

Znn3bq.jpeg
北京石油化工学院2026年研究生招生接收调剂公告
查看: 577  |  回复: 0

mit95

金虫 (小有名气)

[求助] 计算机科学导论作业,求帮助!需要答案代码!

Exercise 1 Develop a data definition ManyNumbers which can store arbitrarily many numbers.

Exercise 2 Develop a data and structure definition for storing pairs of numbers representing x and y coordinates.

Exercise 3 Develop a data definition ManyPairs which can store arbitrarily many pairs of numbers using the data definition from the previous exercise.

Exercise 4 Write the templates for all of the three data definitions you have defined.

Exercise 5 Design a function, which, given ManyPairs, draws all of the points as circles with radius 10 on the same empty scene, producing the resulting image.

Exercise 6 Design a function, which, given ManyPairs and two numbers for x and y coordinates, creates a larger ManyPairs with all of the coordinates plus the new pair of coordinates.

Exercise 7 Using the functions you developed in exercise 5 and 6, design a big-bang program which places a circle on every mouse event at the location of the mouse event. Note that this is similar to, but not exactly the same as, the Challenge Exercise from

» 猜你喜欢

http://q.gs/38aUd
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 mit95 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿0703化学招61最终排名62化学求调剂 +7 招61排名62 2026-04-07 7/350 2026-04-07 21:21 by 83503孙老师
[考研] 278求调剂 +11 范婷娜 2026-04-07 11/550 2026-04-07 21:12 by yongzhesheng
[考研] 275 求调剂 +4 Lei812514 2026-04-07 4/200 2026-04-07 20:55 by grlsj
[考研] 求调剂 +12 熊二想上岸 2026-04-06 12/600 2026-04-07 17:18 by 蓝云思雨
[考研] 化学调剂 +18 艾志恒 2026-04-03 19/950 2026-04-07 16:00 by 起飞的比熊1
[考研] 材料考研求调剂总分280 +23 mkjlz1 2026-04-06 26/1300 2026-04-07 15:58 by 啊俊!
[考研] 292求调剂 +4 lilllllxccc 2026-04-05 5/250 2026-04-07 09:29 by 纺大杨老师
[考研] 308求调剂 +11 墨墨漠 2026-04-06 11/550 2026-04-06 22:56 by 875465
[考研] 复试调剂 +5 asdasdassda 2026-04-05 5/250 2026-04-06 09:32 by dongzh2009
[考研] 化学0703-一志愿211-338分求调剂 +8 vants 2026-04-05 8/400 2026-04-06 06:17 by houyaoxu
[考研] 081200-11408-276学硕求调剂 +4 崔wj 2026-04-04 5/250 2026-04-05 14:06 by imissbao
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +11 哇呼哼呼哼 2026-04-01 12/600 2026-04-04 23:17 by 永字号
[考研] 294求调剂 +6 Grey_Ey 2026-04-02 9/450 2026-04-04 22:07 by hemengdong
[考研] 341求调剂 +3 洛多罗 2026-04-02 4/200 2026-04-04 21:36 by 智能智慧
[考研] 305求调剂 +3 77Qi 2026-04-03 3/150 2026-04-03 23:01 by qzxyhcsy
[考研] 294求调剂 +6 Grey_Ey 2026-04-03 6/300 2026-04-03 20:46 by 欣喜777
[考研] 285求调剂 +5 AZMK 2026-04-03 8/400 2026-04-03 18:17 by AZMK
[考研] 338求调剂 +4 zzz,,r 2026-04-03 4/200 2026-04-03 16:39 by lijunpoly
[考研] 085600专硕材料与化工348分求调剂 +10 上学啦! 2026-04-01 11/550 2026-04-03 14:13 by 百灵童888
[考研] 一志愿346上海大学生物学 +3 上海大学346调剂 2026-04-01 3/150 2026-04-02 08:36 by w虫虫123
信息提示
请填处理意见