摘要:        
#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
卡斯兰娜樱
阅读(81)
评论(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
卡斯兰娜樱
阅读(99)
评论(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
卡斯兰娜樱
阅读(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; cin>>a; if(a!=81) { switc    阅读全文
        posted @ 2018-03-21 20:07
卡斯兰娜樱
阅读(69)
评论(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
卡斯兰娜樱
阅读(92)
评论(1)
推荐(0)
 
                    
                 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号