如何在不使用加号运算符的情况下添加两个数字? [英] How to add two numbers without using the plus operator?

查看:67
本文介绍了如何在不使用加号运算符的情况下添加两个数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用plus运算符的情况下添加两个数字?

How to add two numbers without using the plus operator?

推荐答案

co ****** @ gmail.com 写道:
如何在不使用加号运算符的情况下添加两个数字?
How to add two numbers without using the plus operator?




a - ( - b)



a-(-b)


aahhh !!!!

not not这样。

使用按位运算符..

Markus Schoder写道:
aahhh!!!!
not this way.
using bitwise operators ..

Markus Schoder wrote:
co ****** @ gmail.com 写道:
如何在不使用加号运算符的情况下添加两个数字?
How to add two numbers without using the plus operator?



a - ( - b)



a-(-b)






co ****** @ gmail.com 写道:
aahhh !!!!
不是这样的。
使用按位运算符..

Markus Schoder写道:
aahhh!!!!
not this way.
using bitwise operators ..

Markus Schoder wrote:
co ****** @ gmail.com 写道:
如何在不使用加号运算符的情况下添加两个数字?
How to add two numbers without using the plus operator?


a- (-b)


a-(-b)




给我们你的导师的电子邮件地址,我们会发送答案

直接给他。



Give us your instructor''s email address, and we''ll send the answer
directly to him.


这篇关于如何在不使用加号运算符的情况下添加两个数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆