I am having a hard time porting this part of C++ to C#. I keep getting Operator '||' cannot be applied to operands of type 'long' and 'long' which makes sense. So what would the equivalent be?
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++;
}