摘要: 没有找到原文出处,请参考一下链接:http://www.cnblogs.com/hiside/archive/2010/12/01/1893878.htmlhttp://topic.csdn.net/u/20071023/11/3edb81fc-37b2-4506-906e-44dc0fc521f2... 阅读全文
posted @ 2015-07-06 16:47 HelloWaston 阅读(2269) 评论(0) 推荐(1) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 // 位运算实现加减乘除 6 7 int myAdd(int num1, int num2) 8 { 9 if (num2 == 0) return num1; 1... 阅读全文
posted @ 2015-07-06 16:02 HelloWaston 阅读(1122) 评论(0) 推荐(0) 编辑
摘要: 最近在编程中遇到一个问题:#include using namespace std;int main(){ int n = -2147483648; //cout -2147483648) -2147483648) << endl;因为-2147483648会被转换为unsigned即2147... 阅读全文
posted @ 2015-07-06 15:44 HelloWaston 阅读(1758) 评论(0) 推荐(0) 编辑