摘要:
#includeusing namespace std;int main(){ int n; int sum = 1; int total = 0; cin >> n; for (int i = 1; i using namespace std;int mai... 阅读全文
posted @ 2017-03-14 22:36
乐天的java
阅读(168)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int reverse(int n){ return ((n & 0x55555555) > 1);}int main(){ int n; cin >> n; int res=reverse(n); co... 阅读全文
posted @ 2017-03-14 22:35
乐天的java
阅读(86)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ int m = 5; if (m++ > 5) { cout using namespace std;int main(int args,char **argv){ if (!(... 阅读全文
posted @ 2017-03-14 21:23
乐天的java
阅读(50)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ char c; int i = 0; bool flag = true; while ((c = getchar()) != EOF) { if (flag) { cout... 阅读全文
posted @ 2017-03-14 21:21
乐天的java
阅读(46)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;static int i = 0;class Widget{public: Widget() { //cout << i++ << endl; } Widget(Widget &w) { (*this... 阅读全文
posted @ 2017-03-14 21:19
乐天的java
阅读(28)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ char c; int count = 0; while ((c = getchar()) != EOF) { if ('{' == c) { count++; } e... 阅读全文
posted @ 2017-03-14 21:17
乐天的java
阅读(44)
评论(0)
推荐(0)
摘要:
易错题 #include using namespace std; class A { public: int _a; int b; A() { b = 4;//若是不同名则不屏蔽也不需要通过::访问 _a = 1; } void prin... 阅读全文
posted @ 2017-03-14 21:11
乐天的java
阅读(48)
评论(0)
推荐(0)

浙公网安备 33010602011771号