zoj 1763 A Simple Question of Chemistry(洪水!)
2010-07-21 15:27
459 查看
输出后一个数减前一个数,精确到小数点后两位,遇到999输入结束。。
叙述得真够麻烦的!就当锻炼英语吧~
学习了下c++中输出格式问题。比C复杂好多啊。。
我把那文章贴过来得啦~
额。。这题我的代码。。
叙述得真够麻烦的!就当锻炼英语吧~
学习了下c++中输出格式问题。比C复杂好多啊。。
我把那文章贴过来得啦~
额。。这题我的代码。。
#include <iostream> #include <iomanip> using namespace std; int main(void) { double x,y,temp; cin>>x; while(cin>>y && y!=999) { cout<<fixed << setprecision(2) << (y-x)<<endl; temp = x; x = y; y = temp; } cout<<"End of Output"; system("pause"); return 0; }
相关文章推荐
- zoj 1763 A Simple Question of Chemistry
- ZOJ 1763: A Simple Question of Chemistry 【位数问题setprecision】
- zoj 1763 A Simple Question of Chemistry
- ZOJ 1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- ZOJ Problem Set–1763 A Simple Question of Chemistry
- zoj1763-----------A Simple Question of Chemistry
- 1763 A Simple Question of Chemistry
- 1763_A Simple Question of Chemistry
- POJ 2871 A Simple Question of Chemistry(水题)
- poj 2871 A Simple Question of Chemistry
- POJ 2871 A Simple Question of Chemistry(我的水题之路——数列两数之差 )
- poj2871 A Simple Question of Chemistry
- poj 2871 A Simple Question of Chemistry
- POJ 2871 A Simple Question of Chemistry(水~)
- poj2871 A Simple Question of Chemistry(水题)
- zju1763一个简单的化学问题A Simple Question of Chemistry
- poj 2871 A Simple Question of Chemistry
- poj 2871 A Simple Question of Chemistry