|
查看: 2296|回复: 6
|
programming help!!!
[复制链接]
|
|
|
Write a program that convert decimal number into standard floating point format.
SEEMMMMM
i)The implied decimal point is at the beginning of the mantissa.
ii)A"1" is used to represent positive number and a "9" is used to represent negatif number.
iii)Excess-50 notation is applied.
*用 C++ programming language 的
number是叫user key in然后做calculation的。
如:
Input Output
12345------>1 55 12345
123456------>1 56 12346
-12345------>9 55 12345
-123456------>9 56 12346
0.12345------->1 50 123456
0.0012345----->1 48 12345
15.12345------->1 52 15123
试试把PROGRAMMING CODE SHARE 出来吧!thanks. |
|
|
|
|
|
|
|
|
|
|
发表于 13-10-2010 10:17 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 13-10-2010 06:46 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 15-10-2010 06:30 AM
|
显示全部楼层
回复 4# SotongJiang
那你又不一行一行地有义务的解析呢?
不要只会讲, 不会做喔.. |
|
|
|
|
|
|
|
|
|
|
发表于 15-10-2010 09:20 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 15-10-2010 09:37 AM
|
显示全部楼层
回复 5# jasonmun
你看不懂他在諷刺喔... |
|
|
|
|
|
|
|
|
|
|
发表于 15-10-2010 11:35 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|