提取操作员在做什么?我从未见过它以这种方式使用。
void DecimalToBinary(int decimal)
{
int remainder;
if(decimal <= 1)
{
cout << decimal;
return;
}
remainder = decimal % 2;
/*----->>>*/ DecimalToBinary(decimal >> 1);/*what is the extraction operator doing?*/
cout << remainder;
}