Re: [問題] 自訂ADT運算符號
※ 引述《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
推
11/11 00:07, , 1F
11/11 00:07, 1F
討論串 (同標題文章)
java 近期熱門文章
PTT數位生活區 即時熱門文章