日期:2014-05-17 浏览次数:21223 次
public unsafe struct SSTable //define structure SSTable
{
public KeyType* elem;
public int length;
};
ST.length = 100;
ST.elem = stackalloc int[ST.length];
for (int i = 1; i <= ST.length; i++) //初始化数组变量ST.elem
{
ST.elem[i] = elem[i];
}