摘要: 第一种方法: 第二种方法(传递参数值) 阅读全文
posted @ 2017-11-21 12:32 TOTO2 阅读(5339) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int m(int x,int y,int z); short m(short q,short w,short e); double m(double a,double s,double d); int main(){ int a,b,c,min; cin>>a>>b>>c; min=m(a,b,c); ... 阅读全文
posted @ 2017-11-21 11:16 TOTO2 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { int arr[10]={6,98,498,56,43,646,894,46,8,89}; for (int i=0;i<10;i++){ cout<<"Êý×é˳Ðò"<<i<<"µÄÊýÖ 阅读全文
posted @ 2017-11-21 11:11 TOTO2 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { int arr[30]={1,1,2,3,5,8,13}; for(int a=2;a<30;a++){ arr[a]=arr[a-1]+arr[a-2]; } for(int a=0;a<30 阅读全文
posted @ 2017-11-21 11:09 TOTO2 阅读(165) 评论(0) 推荐(0) 编辑