会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
三叶癌
上一页
1
2
3
4
5
下一页
2017年9月21日
练习题4
摘要: #include<iostream>using namespace std;int main(){ float a; int b; a=5.8; b=a; cout<<"a="<<a<<'\n'<<"b="<<b<<endl; return 0;}
阅读全文
posted @ 2017-09-21 11:12 三叶癌
阅读(82)
评论(0)
推荐(0)
练习题3
摘要: #include<iostream>using namespace std;int main(){ bool flag; flag=true; if(flag) cout<<false<<endl; return 0; } #include<iostream>using namespace std;
阅读全文
posted @ 2017-09-21 11:01 三叶癌
阅读(79)
评论(0)
推荐(0)
练习题2
摘要: #include<iostream>using namespace std;int main(){ float x; x=2.4; cout<<"x="<<x<<endl; return 0;}
阅读全文
posted @ 2017-09-21 10:09 三叶癌
阅读(72)
评论(0)
推荐(0)
练习题1
摘要: #include<iostream>using namespace std;int main(){ long long int a; a=12345678901234; cout<<a<<endl; return 0;}
阅读全文
posted @ 2017-09-21 10:03 三叶癌
阅读(91)
评论(0)
推荐(0)
2017年9月18日
82页24题目
摘要: #include<iostream>using namespace std;int main(){ for(int a=1;a<5;a++){ for(int b=1;b<=2*a-1;b++){ cout<<"*"; } cout<<'\n'; } for(int a=1;a<4;a++){ fo
阅读全文
posted @ 2017-09-18 10:30 三叶癌
阅读(73)
评论(0)
推荐(0)
2017年9月14日
例子2.5
摘要: #include<iostream>using namespace std;int main(){ unsigned short a; short int b=-2; a=b; cout<<"a="<<a<<endl; return 0; }
阅读全文
posted @ 2017-09-14 10:02 三叶癌
阅读(64)
评论(0)
推荐(0)
例子2.4
摘要: #include<iostream>using namespace std;int main(){ float x; int i; x=3.6; i=(int)x; cout<<"x="<<x<<",i="<<i<<endl; return 0;}
阅读全文
posted @ 2017-09-14 09:51 三叶癌
阅读(78)
评论(0)
推荐(0)
例子2.3
摘要: #include<iostream>using namespace std;#define price 40 int main() { int num,total; num=10; total=num*price; cout<<"total="<<total<<endl; return 0; }
阅读全文
posted @ 2017-09-14 09:41 三叶癌
阅读(72)
评论(0)
推荐(0)
例2
摘要: #include<iostream>using namespace std;int main() { char c1,c2; c1='a'; c2='b'; c1=c1-32; c2=c2-32; cout<<c1<<'\n'<<c2<<endl; return 0;}
阅读全文
posted @ 2017-09-14 09:29 三叶癌
阅读(78)
评论(0)
推荐(0)
例2.1
摘要: #include<iostream>using namespace std;int main() { int i,j; i='A'; j='B'; cout<<i<<'\n'<<j; return 0;}
阅读全文
posted @ 2017-09-14 09:28 三叶癌
阅读(70)
评论(1)
推荐(0)
上一页
1
2
3
4
5
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告