'commit'
This commit is contained in:
15
C++课程/第十五课循环结构程序设计实例/test1.cpp
Normal file
15
C++课程/第十五课循环结构程序设计实例/test1.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
|
||||
bool judege(int n) {
|
||||
//return n & (n - 1) == 0;
|
||||
return (n & (n - 1) )== 0;
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
cout<< judege(1024)<<endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user