C++オーバービット演算は、1つの数が2の整数次数であるか否かを判断する


コードは次のように実装されます.
#include
using namespace std;

bool fun(int num);//             2     ,       1 
void test(int num);
int main(){
	test(17);
	test(16);
	
	return 0;
}

void test(int num){
	
	if(fun(num))
		cout<