码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
分支-08. 高速公路超速处罚(15)
#includeusing namespace std;int main(){ int speed,limit,ex; cin>>speed>>limit; ex=100.0*(speed-limit)/limit+0.5; if(ex<10) cout<<"OK"<<endl; else if(....
分类:其他好文   时间:2014-07-02 18:39:46    阅读次数:239
分支-07. 比较大小(10)
#includeusing namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a""""""""=c) cout""""<<a<<endl; return 0;}
分类:其他好文   时间:2014-07-02 18:37:06    阅读次数:170
分支-10. 计算个人所得税(10)
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=1600) cout<<0.00<<endl; else i....
分类:其他好文   时间:2014-07-02 18:23:21    阅读次数:177
分支-12. 计算火车运行时间(15)
#include#includeusing namespace std;int main(){ int s,e; cin>>s>>e; cout=s%100) cout<<setw(2)<<e/100-s/100<<":"<<setw(2)<<e%100-s%100<<endl; else co.....
分类:其他好文   时间:2014-07-02 18:19:45    阅读次数:229
分支-09. 分段计算居民水费(10)
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=15) cout<<4*x/3<<endl; else c.....
分类:其他好文   时间:2014-07-02 18:10:27    阅读次数:200
分支-11. 计算工资(15)
#include#includeusing namespace std;int main(){ int y,t; float s; cin>>y>>t; cout<<setiosflags(ios::fixed)<<setprecision(2); if(y<=4) if(t<=40) s=3...
分类:其他好文   时间:2014-07-02 17:48:01    阅读次数:235
分支-14. 简单计算器(10)
1 #include 2 using namespace std; 3 int main(){ 4 int a,b; 5 char s; 6 while(cin>>a){ 7 cin>>s>>b; 8 if(s=='+') 9 ...
分类:其他好文   时间:2014-07-02 17:36:14    阅读次数:149
分支-15. 日K蜡烛图(15)
1 #include 2 using namespace std; 3 int main(){ 4 float o,h,l,c; 5 while(cin>>o>>h>>l>>c){ 6 if(co) 9 couto&&h>c)14 ...
分类:其他好文   时间:2014-07-02 17:29:47    阅读次数:264
字符串-02. 删除字符串中的子串(20)
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string s1, s2; 6 getline(cin, s1); 7 getline(cin, s2); 8 while(s1.find(s...
分类:其他好文   时间:2014-07-02 17:17:29    阅读次数:281
字符串-01. 在字符串中查找指定字符(15)
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string s; 6 char c; 7 getline(cin,s); 8 cin>>c; 9 if(s.find(c)!=stri...
分类:其他好文   时间:2014-07-02 15:02:48    阅读次数:257
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!