我試圖爲P調用函數/從C++/Win32的DLL調用一個函數,但每當我把它叫做我得到以下錯誤: System.AccessViolationException occurred
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication
我目前在Lua這一霍夫曼算法 for _,v in next, tData do
tFreq[v] = tFreq[v] and tFreq[v]+1 or 1
end
for k,v in next,tFreq do
iCount = iCount + 1
fInsert(tTree,{freq=v,contains=k})
end
while #tTree