[問題] 有關CLR的delegate...
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC 2008
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
CLI
問題(Question):
我有一份課本的範例碼(From D&D)
http://ideone.com/idOPm
但是它是在以前的VC開發的
現在在VC2008編譯不過
能不能幫我看一下
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
1>.\test.cpp(68) : error C3867: 'BubbleSort::SortAscending': 函式呼叫遺漏引數
清單,請用 '&BubbleSort::SortAscending' 建立成員的指標
1>.\test.cpp(68) : error C3350: 'DelegateBubbleSort::Comparator' : 委派建構函
式必須有 2 個引數
1>.\test.cpp(73) : error C3867: 'BubbleSort::SortDescending': 函式呼叫遺漏引數
清單,請用 '&BubbleSort::SortDescending' 建立成員的指標
1>.\test.cpp(73) : error C3350: 'DelegateBubbleSort::Comparator' : 委派建構函
式必須有 2 個引數
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.40.121.66
推
01/28 23:24, , 1F
01/28 23:24, 1F
→
01/28 23:25, , 2F
01/28 23:25, 2F
→
01/29 00:01, , 3F
01/29 00:01, 3F
→
01/29 00:09, , 4F
01/29 00:09, 4F
→
01/29 00:09, , 5F
01/29 00:09, 5F
→
01/30 14:56, , 6F
01/30 14:56, 6F
→
01/30 14:56, , 7F
01/30 14:56, 7F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):