登录到unsigned int [英] signed in to unsigned int

查看:97
本文介绍了登录到unsigned int的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人告诉我我需要做什么,以便在没有标志的情况下将

signed int打印到屏幕上?原始的int需要签署

,以便我可以看到它是否小于或大于零。

一旦完成,相关的消息它打印到屏幕上,

需要打印的数字没有签名。


例如:


你已经赚了12778美元

你输了$ -456(应该看你输了456美元)。


提前谢谢。

Please could someone tell me what I need to do, in order to print a
signed int to the screen without it''s sign? The original int needs to
be signed so that I can see if it''s less than or greater than zero.
Once that''s done, and the relevant message it printed to the screen,
the number needs to be printed without its signed.

for example:

You have made $12778
You have lost $-456 (should read you have lost $456).

Thanks in advance.

推荐答案

12778

你输了
12778
You have lost


-456(应该读你有丢失
-456 (should read you have lost


456)。


提前致谢。

456).

Thanks in advance.


这篇关于登录到unsigned int的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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