作者capslook1218 (一直当朋友也不错)
看板java
标题Re: [问题] 自订ADT运算符号
时间Sat Nov 11 00:07:05 2006
※ 引述《PsMonkey (痞子军团团长)》之铭言:
: ※ 引述《capslook1218 (一直当朋友也不错)》之铭言:
: : 我的意思是说能不能自订"+ - * /"这样的符号
: : 然後如果不能的话
: : 是不是就要用ADT做(也可以不用)
: 虽然说我资料结构没学好
: (偏偏现在还在带资料结构助教课 XD)
: 不过这个 ADT 应该是资料结构的 ADT 吧?
: 根据 Fundamentals of Data Structures in C 这本书 p.15 提供的定义
: An abstract data type (ADT) is a data type that is organized
: in such a way that the specification of the objects and the
: specification of the operation on the objects is separated
: from the representation of the objects and the implementation
: of the operations.
: 下面还写:
: Some programming languages provide explicit mechanisms to
: support the distinction between specification and implementation.
: For example, Ada has a concept called a package, and C++ has a
: concept called a class.
: C++ 的 class 应该跟 Java 的 class 完全等价
: 所以,当 qrtt1(大神)回你那篇之後
: 你这篇仍然说「是不是就要用 ADT 作」
: 这... 似乎有点囧....
: : 之後我打着打着又想到说API说不定会有这个东西
: : 我跑去查...没找到(可能我功力不够吧~_~我是找math里面的东西可是好像没看到~_~)
: : 英文太烂了....
: : ps:一直当朋友也不错.....这是我心中的痛别提了......不过我不敢自称是好人
: : 感谢两位大大的讲解
呵呵....好强
老实说我对ADT的认知
只知道他是一个要去实作的method
目前我正在修资结......囧
不好意思
所以可能会很好笑的问题跑出来
不好意思....^^
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.117.241.163
1F:推 PsMonkey:我只是把书上的字打下来而已,这样也能虎烂到人? 11/11 00:07