发布时间:2015-11-16 15:38:24
#include <iostream>#include <stack>using namespace std;void Reverse(stack<int> s1, stack<int> s2){ for (int j=5; j>0; j--) { s1.push(j); } int stacksize = s1.size(); &n.........【阅读全文】
发布时间:2015-11-16 12:20:22
#include <iostream>using namespace std;#define mysizeof(value) (char *)(&value+1) - (char *)&valueint main(void){ int i; double f; double a[4]; double *q; cout << mysizeof(i) << endl; &.........【阅读全文】
发布时间:2015-11-16 12:01:39
//方法一int main(void){ int i = 65536; cout << i; //16位输出0 int i = 65535; cout << i; //16位输出-1 return 0;}//方法二int main(void){ int i = ~0; if (i > 655.........【阅读全文】