| 查看: 604 | 回复: 0 | |||
[求助]
计算机科学导论作业,求帮助!需要答案代码!
|
|
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 |
» 猜你喜欢
应该是93bebmhtak前后十一个字符比较关键
已经有36人回复
关于Filecode分析方法
已经有9人回复
2019年青年基金涵评意见,大家看看几个A,几个B?
已经有10人回复
不应该看fileCode
已经有6人回复
好奇怪的filecode
已经有6人回复
FileCode能看出啥?
已经有21人回复
长年满屏的广告,版主太不责任了。基金也等的急
已经有4人回复
filecode
已经有15人回复
职称评审,求友友推荐见刊最快的期刊
已经有4人回复
奇怪,两个人的filecode固定段从头到尾一模一样
已经有10人回复











回复此楼