我嘗試到C LIB轉換爲C#和被卡在代碼:將C遷移到C#的問題!
typedef struct _Symbol
{
unsigned char value;
unsigned char count;
unsigned char under;
unsigned char left, right;
} Symbol;
// [...]
void函數(符號*符號){
...
if (! symbol -> right) break; // So, right is equivalent to bool in C#?
symbol += symbol -> right; // I have no idea what this code will do.
...
}
請幫我一把。
c#中的無符號字符將是一個字節。您在那裏的代碼會檢查右側是否大於零。 – 2011-05-15 14:52:30
我懷疑這個符號被定義爲Symbol *符號,並且左邊和右邊是符號實例的偏移。 – kenny 2011-05-15 14:54:20