摘要: #include<iostream>using namespace std;int main(){ int i,j,k,n=0; for(i=0;i<5;i++)//第一个球 { for(j=0;j<5;j++)//第二个球 { if(i!=j)//第一个和第二个球不一样,再进行 { for(k=0 阅读全文
posted @ 2018-03-21 20:11 卡斯兰娜樱 阅读(77) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdlib> using namespace std;int main(){ int i=1+rand()%100; int a=101; while(a!=i) { cin>>a; if(a<i) { cout<<"少了"<<endl; c 阅读全文
posted @ 2018-03-21 20:10 卡斯兰娜樱 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<math.h>using namespace std;int main(){ int a,j,i=1; cout<<"包含了100之内的质数"<<endl; while(i<=100) { a=sqrt(i); for(j=2;j<=a;j++) 阅读全文
posted @ 2018-03-21 20:08 卡斯兰娜樱 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ char a=100; cout<<"Menu:A(dd) D(elete) S(ort) Q(uit) ,Select one: "<<endl; cin>>a; if(a!=81) { switc 阅读全文
posted @ 2018-03-21 20:07 卡斯兰娜樱 阅读(62) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ char a=100; cout<<"Menu:A(dd) D(elete) S(ort) Q(uit) ,Select one: "<<endl; while(a!=81) { cin>>a; sw 阅读全文
posted @ 2018-03-21 20:06 卡斯兰娜樱 阅读(89) 评论(1) 推荐(0) 编辑