![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++课堂在线
柯-南
这个作者很懒,什么都没留下…
展开
-
第7周项目1-圆柱体的表面积
#include using namespace std; int main() { double r,h,area=0; cout<<"please enter the value of r and h "<<endl; while(cin>>r>>h){ cout<<"the superficial area of cyclinder is原创 2013-10-14 21:39:15 · 481 阅读 · 0 评论 -
第7周项目2-两数正差
#include using namespace std; int main() { int a,b; cout<<"please input two positive integers"<<endl; while(cin>>a>>b){ if((a>0)&&(b>0)){ if(a>b) cout<原创 2013-10-14 21:25:52 · 460 阅读 · 0 评论 -
第7周项目3-排序
#include using namespace std; int main() { int a[4]; for(int i=0;i<4;i++) cin>>a[i];//用数组储存输入的四个数 for(int i=0;i<4;i++)//两层循环实现排序,每次外循环,冒出一个大数 for(int j=i+1;j<4;j++){//将原创 2013-10-14 22:19:08 · 401 阅读 · 0 评论