[問題] LEDA:任意長度的integer

看板C_and_CPP作者 (123)時間10年前 (2013/10/17 23:40), 編輯推噓1(107)
留言8則, 4人參與, 最新討論串1/1
開發平台(Platform): Linux 問題(Question): 最近發現這個叫做LEDA的神奇東西 http://www.algorithmic-solutions.com/leda/about/index.htm 它好像是個library,有加強版的data structure、algorithm之類的功能 其中有個神奇的東西: Integers of arbitrary length 竟然可以計算很長位數的integer http://www.leda-tutorial.org/en/unofficial/ch06s01.html http://www.algorithmic-solutions.info/leda_guide/number_types/integer.html 這真是太神奇了 有大大知道它是怎麼做到的嗎? 小弟抓了free edition下來想玩玩看 http://www.algorithmic-solutions.com/leda/ledak/index.htm 立刻照下面這個簡單例子想要嘗試 http://www.algorithmic-solutions.info/leda_manual/getting_started.html 但是下了 g++ -o prog prog.c -lleda -lX11 -lm 就有error prog.c:1:31: 錯誤:LEDA/core/d_array.h:沒有此一檔案或目錄 prog.c:2:30: 錯誤:LEDA/core/string.h:沒有此一檔案或目錄 問題應該是出在library沒build起來 請問我要怎樣才能使用這包library呢? 下了make,好像沒什麼變化 @@ 謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 180.176.221.68 ※ 編輯: Hyozero 來自: 180.176.221.68 (10/17 23:41)

10/17 23:41, , 1F
用 boost 不好嗎?
10/17 23:41, 1F

10/17 23:41, , 2F
我前陣子PO五億探長系列你大概沒跟到
10/17 23:41, 2F

10/17 23:47, , 3F
請問boost和五億探長是?
10/17 23:47, 3F

10/18 00:04, , 4F
#1IDptFlV #1IENu5lb 只寫了兩億就想不出新題目來玩了
10/18 00:04, 4F

10/18 07:15, , 5F
cgal 選用的數值庫,因為要錢,所以少人用。
10/18 07:15, 5F

10/18 07:15, , 6F
gmp mpir mpfr 比較多人用。
10/18 07:15, 6F

10/18 09:44, , 7F
那系列?
10/18 09:44, 7F

10/18 12:39, , 8F
找到了...很神奇的五億..
10/18 12:39, 8F
文章代碼(AID): #1IO0JXaP (C_and_CPP)