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++;
}
宾果,谢谢! –