Re: [問題] 自訂ADT運算符號

看板java作者 (一直當朋友也不錯)時間19年前 (2006/11/11 00:03), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串8/8 (看更多)
※ 引述《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
文章代碼(AID): #15LABd3Q (java)
文章代碼(AID): #15LABd3Q (java)