热门

最新

红包

立Flag

投票

同城

我的

发布
qq_45503865
展望便是阳光
6 年前
trueqq_45503865

msp430f5529中断笔记(二)--中断嵌套

CSDN App 扫码分享
分享
评论
4
打赏
  • 复制链接
  • 举报
下一条:
A+B问题,请大神指点,为什么负数不行#include<iostream> using namespace std; int add(int a,int b){ if(a==0) return b; if(b==0) return a; int c=a^b; int d=(a&b)<<1; a=c; b=d; return a|b; } int main() { int i,j; cin>>i>>j; cout<<add(i,j); return 0; }
立即登录