佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 2295|回复: 6

programming help!!!

[复制链接]
发表于 13-10-2010 12:27 AM | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报


ADVERTISEMENT

发表于 13-10-2010 10:17 AM | 显示全部楼层
这是LZ的功课吗?
回复

使用道具 举报

发表于 13-10-2010 06:46 PM | 显示全部楼层
那么简单都不会,也不愿去研究,可怜父母的血汗钱。
回复

使用道具 举报

发表于 15-10-2010 06:30 AM | 显示全部楼层
回复 4# SotongJiang

那你又不一行一行地有义务的解析呢?
不要只会讲, 不会做喔..
回复

使用道具 举报

发表于 15-10-2010 09:20 AM | 显示全部楼层
C++我不会。。。
回复

使用道具 举报

发表于 15-10-2010 09:37 AM | 显示全部楼层
回复 5# jasonmun


你看不懂他在諷刺喔...
回复

使用道具 举报

Follow Us
发表于 15-10-2010 11:35 AM | 显示全部楼层
Write a program that convert decimal number into standard floating point format.
SEEMMMMM
i)The im ...
湘伦小雨 发表于 13-10-2010 12:27 AM


share 了


  1. switch ( c )
  2. {
  3. case '12345':
  4.   echo "1 55 12345";
  5.   break;
  6. case '123456-':
  7.   echo "1 56 12346";
  8.   break;
  9. case '-12345':
  10.   echo "9 55 12345";
  11.   break;
  12. }
复制代码

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 18-11-2025 12:17 PM , Processed in 0.148112 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表