码迷,mamicode.com
首页 > 编程语言 > 详细

c++作业1 9.22

时间:2017-09-25 20:51:25      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:alt   com   str   using   iostream   std   bsp   nbsp   分享   

#include <iostream>
using namespace std;
int main(){
int x=8999;
int value=x*1000/1000;
cout<<"value="<<value<<endl;
}
 技术分享

#include <iostream>
using namespace std;
int main(){
int x=8999;
int value=x/1000*1000;
cout<<"value="<<value<<endl;
}
 技术分享

#include <iostream>
using namespace std;
int main(){
int x=8999;
int value=x/1000.0*1000;
cout<<"value="<<value<<endl;
}
 技术分享

c++作业1 9.22

标签:alt   com   str   using   iostream   std   bsp   nbsp   分享   

原文地址:http://www.cnblogs.com/928990166li/p/7593585.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!