2
我很難將這部分C++移植到C#中。我不斷收到Operator'||'不能應用於'long'和'long'類型的操作數,這是合理的。那麼等值是什麼?C++片段到C#按位運算符
while ((c <= combinations) && ((round_set & (1 << cList[c].one)) || (round_set & (1 << cList[c].two)) || (cUsed[c])))
{
fprintf(stdout, "C: %d\n", c);
c++;
}
while ((c <= combinations) && ((round_set & (1 << cList[c].one)) || (round_set & (1 << cList[c].two)) || (cUsed[c])))
{
Console.WriteLine("C: {0}", c);
c++;
}
賓果,謝謝! –